http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
24f945e
)
Reset screen on exit as well as entry
author
Michael Brown
<mcb30@etherboot.org>
Wed, 20 Dec 2006 01:30:40 +0000
(
01:30
+0000)
committer
Michael Brown
<mcb30@etherboot.org>
Wed, 20 Dec 2006 01:30:40 +0000
(
01:30
+0000)
src/hci/mucurses/ansi_screen.c
patch
|
blob
|
history
diff --git
a/src/hci/mucurses/ansi_screen.c
b/src/hci/mucurses/ansi_screen.c
index
b230b2b
..
aef86f4
100644
(file)
--- a/
src/hci/mucurses/ansi_screen.c
+++ b/
src/hci/mucurses/ansi_screen.c
@@
-4,7
+4,7
@@
unsigned short _COLS = 80;
unsigned short _LINES = 24;
unsigned short _COLS = 80;
unsigned short _LINES = 24;
-static void ansiscr_
ini
t ( struct _curses_screen *scr ) {
+static void ansiscr_
rese
t ( struct _curses_screen *scr ) {
/* Reset terminal attributes and clear screen */
scr->attrs = 0;
scr->curs_x = 0;
/* Reset terminal attributes and clear screen */
scr->attrs = 0;
scr->curs_x = 0;
@@
-12,9
+12,6
@@
static void ansiscr_init ( struct _curses_screen *scr ) {
printf ( "\033[0m\033[2J\033[1;1H" );
}
printf ( "\033[0m\033[2J\033[1;1H" );
}
-static void ansiscr_exit ( struct _curses_screen *scr __unused ) {
-}
-
static void ansiscr_movetoyx ( struct _curses_screen *scr,
unsigned int y, unsigned int x ) {
if ( ( x != scr->curs_x ) || ( y != scr->curs_y ) ) {
static void ansiscr_movetoyx ( struct _curses_screen *scr,
unsigned int y, unsigned int x ) {
if ( ( x != scr->curs_x ) || ( y != scr->curs_y ) ) {
@@
-60,8
+57,8
@@
static bool ansiscr_peek ( struct _curses_screen *scr __unused ) {
}
SCREEN _ansi_screen = {
}
SCREEN _ansi_screen = {
- .init = ansiscr_
ini
t,
- .exit = ansiscr_
exi
t,
+ .init = ansiscr_
rese
t,
+ .exit = ansiscr_
rese
t,
.movetoyx = ansiscr_movetoyx,
.putc = ansiscr_putc,
.getc = ansiscr_getc,
.movetoyx = ansiscr_movetoyx,
.putc = ansiscr_putc,
.getc = ansiscr_getc,