do not show cursor while waiting for only one keypress
This commit is contained in:
@@ -596,7 +596,6 @@ int main(int argc, char *argv[])
|
|||||||
LockStatusbar();
|
LockStatusbar();
|
||||||
Statusbar() << "Delete playlist \"" << name << "\" ? [y/n] ";
|
Statusbar() << "Delete playlist \"" << name << "\" ? [y/n] ";
|
||||||
wFooter->Refresh();
|
wFooter->Refresh();
|
||||||
curs_set(1);
|
|
||||||
input = 0;
|
input = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
@@ -604,7 +603,6 @@ int main(int argc, char *argv[])
|
|||||||
wFooter->ReadKey(input);
|
wFooter->ReadKey(input);
|
||||||
}
|
}
|
||||||
while (input != 'y' && input != 'n');
|
while (input != 'y' && input != 'n');
|
||||||
curs_set(0);
|
|
||||||
UnlockStatusbar();
|
UnlockStatusbar();
|
||||||
if (input == 'y')
|
if (input == 'y')
|
||||||
{
|
{
|
||||||
@@ -642,7 +640,6 @@ int main(int argc, char *argv[])
|
|||||||
LockStatusbar();
|
LockStatusbar();
|
||||||
Statusbar() << "Delete " << (item.type == itSong ? "file" : "directory") << " \"" << name << "\" ? [y/n] ";
|
Statusbar() << "Delete " << (item.type == itSong ? "file" : "directory") << " \"" << name << "\" ? [y/n] ";
|
||||||
wFooter->Refresh();
|
wFooter->Refresh();
|
||||||
curs_set(1);
|
|
||||||
input = 0;
|
input = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
@@ -650,7 +647,6 @@ int main(int argc, char *argv[])
|
|||||||
wFooter->ReadKey(input);
|
wFooter->ReadKey(input);
|
||||||
}
|
}
|
||||||
while (input != 'y' && input != 'n');
|
while (input != 'y' && input != 'n');
|
||||||
curs_set(0);
|
|
||||||
UnlockStatusbar();
|
UnlockStatusbar();
|
||||||
if (input == 'y')
|
if (input == 'y')
|
||||||
{
|
{
|
||||||
@@ -761,14 +757,12 @@ int main(int argc, char *argv[])
|
|||||||
LockStatusbar();
|
LockStatusbar();
|
||||||
Statusbar() << "Playlist already exists, overwrite: " << playlist_name << " ? [y/n] ";
|
Statusbar() << "Playlist already exists, overwrite: " << playlist_name << " ? [y/n] ";
|
||||||
wFooter->Refresh();
|
wFooter->Refresh();
|
||||||
curs_set(1);
|
|
||||||
input = 0;
|
input = 0;
|
||||||
while (input != 'y' && input != 'n')
|
while (input != 'y' && input != 'n')
|
||||||
{
|
{
|
||||||
TraceMpdStatus();
|
TraceMpdStatus();
|
||||||
wFooter->ReadKey(input);
|
wFooter->ReadKey(input);
|
||||||
}
|
}
|
||||||
curs_set(0);
|
|
||||||
UnlockStatusbar();
|
UnlockStatusbar();
|
||||||
|
|
||||||
if (input == 'y')
|
if (input == 'y')
|
||||||
@@ -1635,7 +1629,6 @@ int main(int argc, char *argv[])
|
|||||||
*wFooter << " \"" << myPlaylistEditor->Playlists->Current() << "\"";
|
*wFooter << " \"" << myPlaylistEditor->Playlists->Current() << "\"";
|
||||||
*wFooter << " ? [y/n] ";
|
*wFooter << " ? [y/n] ";
|
||||||
wFooter->Refresh();
|
wFooter->Refresh();
|
||||||
curs_set(1);
|
|
||||||
input = 0;
|
input = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
@@ -1643,9 +1636,7 @@ int main(int argc, char *argv[])
|
|||||||
wFooter->ReadKey(input);
|
wFooter->ReadKey(input);
|
||||||
}
|
}
|
||||||
while (input != 'y' && input != 'n');
|
while (input != 'y' && input != 'n');
|
||||||
curs_set(0);
|
|
||||||
UnlockStatusbar();
|
UnlockStatusbar();
|
||||||
|
|
||||||
if (input != 'y')
|
if (input != 'y')
|
||||||
{
|
{
|
||||||
ShowMessage("Aborted!");
|
ShowMessage("Aborted!");
|
||||||
@@ -1810,7 +1801,6 @@ int main(int argc, char *argv[])
|
|||||||
LockStatusbar();
|
LockStatusbar();
|
||||||
Statusbar() << "Tag type ? [" << fmtBold << 'a' << fmtBoldEnd << "rtist/" << fmtBold << 'y' << fmtBoldEnd << "ear/" << fmtBold << 'g' << fmtBoldEnd << "enre/" << fmtBold << 'c' << fmtBoldEnd << "omposer/" << fmtBold << 'p' << fmtBoldEnd << "erformer] ";
|
Statusbar() << "Tag type ? [" << fmtBold << 'a' << fmtBoldEnd << "rtist/" << fmtBold << 'y' << fmtBoldEnd << "ear/" << fmtBold << 'g' << fmtBoldEnd << "enre/" << fmtBold << 'c' << fmtBoldEnd << "omposer/" << fmtBold << 'p' << fmtBoldEnd << "erformer] ";
|
||||||
wFooter->Refresh();
|
wFooter->Refresh();
|
||||||
curs_set(1);
|
|
||||||
input = 0;
|
input = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
@@ -1818,7 +1808,6 @@ int main(int argc, char *argv[])
|
|||||||
wFooter->ReadKey(input);
|
wFooter->ReadKey(input);
|
||||||
}
|
}
|
||||||
while (input != 'a' && input != 'y' && input != 'g' && input != 'c' && input != 'p');
|
while (input != 'a' && input != 'y' && input != 'g' && input != 'c' && input != 'p');
|
||||||
curs_set(0);
|
|
||||||
UnlockStatusbar();
|
UnlockStatusbar();
|
||||||
mpd_TagItems new_tagitem = IntoTagItem(input);
|
mpd_TagItems new_tagitem = IntoTagItem(input);
|
||||||
if (new_tagitem != Config.media_lib_primary_tag)
|
if (new_tagitem != Config.media_lib_primary_tag)
|
||||||
|
|||||||
@@ -534,7 +534,6 @@ void TagEditor::EnterPressed()
|
|||||||
LockStatusbar();
|
LockStatusbar();
|
||||||
Statusbar() << "Number tracks? [y/n] ";
|
Statusbar() << "Number tracks? [y/n] ";
|
||||||
wFooter->Refresh();
|
wFooter->Refresh();
|
||||||
curs_set(1);
|
|
||||||
int in = 0;
|
int in = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
@@ -542,7 +541,6 @@ void TagEditor::EnterPressed()
|
|||||||
wFooter->ReadKey(in);
|
wFooter->ReadKey(in);
|
||||||
}
|
}
|
||||||
while (in != 'y' && in != 'n');
|
while (in != 'y' && in != 'n');
|
||||||
curs_set(0);
|
|
||||||
UnlockStatusbar();
|
UnlockStatusbar();
|
||||||
if (in == 'y')
|
if (in == 'y')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user