(getsose): Port from obsolete termcap to terminfo. The old code

manually stripped off padding, which is evil.  The new code does
nothing when the stdout is not connected to a terminal.
(SO, smso, SE, rmso): Rename, static linkage.
(putso, putse): New.
(screen): Use it.
This commit is contained in:
Markus Armbruster 2005-06-04 13:03:16 +00:00
parent c3915edb54
commit fbf9f15bbb
3 changed files with 48 additions and 62 deletions

View file

@ -61,7 +61,15 @@ extern char *SE;
HANDLE hStdIn;
#endif
#ifdef _WIN32
#define getsose() ((void)0)
#define putso() ((void)0)
#define putse() ((void)0)
#else
void getsose(void);
void putso(void);
void putse(void);
#endif
int recvline(int s, char *buf);
int expect(int s, int match, char *buf);
int handleintr(int);