hexedit: implement "[enter] goto offset" key
This is a must if you need to edit sector 123456789999 on your /dev/disk. text data bss dec hex filename 922745 481 6832 930058 e310a busybox_old 923023 481 6832 930336 e3220 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -281,9 +281,9 @@ static void set_tty_cooked(void)
|
||||
|
||||
/* Move the cursor to a position (x,y), where (0,0) is the
|
||||
top-left corner of the console */
|
||||
static void move_cursor(int line, int row)
|
||||
static void move_cursor(int line, int col)
|
||||
{
|
||||
printf(ESC"[%u;%uH", line, row);
|
||||
printf(ESC"[%u;%uH", line, col);
|
||||
}
|
||||
|
||||
static void clear_line(void)
|
||||
|
||||
Reference in New Issue
Block a user