Refactor tty_info() to make rl_reset_terminal() useful.

This commit is contained in:
Joachim Nilsson
2010-08-05 15:14:06 +02:00
parent de6ff117bb
commit 1c89c9886c
3 changed files with 60 additions and 52 deletions

View File

@@ -53,8 +53,8 @@
# include <sys/ioctl.h>
#endif
#define MEM_INC 64
#define SCREEN_INC 256
#define MEM_INC 64
#define SCREEN_INC 256
/* http://stackoverflow.com/questions/1598773/is-there-a-standard-function-in-c-that-would-return-the-length-of-an-array/1598827#1598827 */
#define ARRAY_ELEMENTS(arr) ((sizeof(arr)/sizeof(0[arr])) / ((size_t)(!(sizeof(arr) % sizeof(0[arr])))))