2001-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* fhandler_console.cc (fhandler_console::char_command): Save the cursor position relative to the top of the window. * fhandler_cc (fhandler_console::write): Ditto.
This commit is contained in:
parent
f90e39b55e
commit
29ebba7050
@ -1,3 +1,9 @@
|
||||
2001-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
|
||||
|
||||
* fhandler_console.cc (fhandler_console::char_command): Save the cursor
|
||||
position relative to the top of the window.
|
||||
* fhandler_cc (fhandler_console::write): Ditto.
|
||||
|
||||
Mon Sep 3 21:06:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* dir.cc (opendir): Write version information to __d_dirent->d_version.
|
||||
|
@ -1306,9 +1306,10 @@ fhandler_console::char_command (char c)
|
||||
break;
|
||||
case 's': /* Save cursor position */
|
||||
cursor_get (&savex, &savey);
|
||||
savey -= info.winTop;
|
||||
break;
|
||||
case 'u': /* Restore cursor position */
|
||||
cursor_set (FALSE, savex, savey);
|
||||
cursor_set (TRUE, savex, savey);
|
||||
break;
|
||||
case 'I': /* TAB */
|
||||
cursor_get (&x, &y);
|
||||
@ -1543,12 +1544,13 @@ fhandler_console::write (const void *vsrc, size_t len)
|
||||
}
|
||||
else if (*src == '8') /* Restore cursor position */
|
||||
{
|
||||
cursor_set (FALSE, savex, savey);
|
||||
cursor_set (TRUE, savex, savey);
|
||||
state_ = normal;
|
||||
}
|
||||
else if (*src == '7') /* Save cursor position */
|
||||
{
|
||||
cursor_get (&savex, &savey);
|
||||
savey -= info.winTop;
|
||||
state_ = normal;
|
||||
}
|
||||
else if (*src == 'R')
|
||||
|
Loading…
Reference in New Issue
Block a user