Use plain ASCII chars for lines on Win32 console CTK.

This commit is contained in:
Oliver Schmidt 2013-02-09 02:02:46 +01:00
parent b1eeaf31c9
commit 21b8be3798
2 changed files with 31 additions and 31 deletions

View file

@ -50,7 +50,7 @@ typedef unsigned short uip_stats_t;
#define UIP_CONF_MAX_CONNECTIONS 40
#define UIP_CONF_MAX_LISTENPORTS 40
#define UIP_CONF_BUFFER_SIZE 420
#define UIP_CONF_BUFFER_SIZE 1514
#define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
#define UIP_CONF_TCP_SPLIT 1
#if UIP_CONF_IPV6
@ -74,10 +74,10 @@ typedef unsigned short uip_stats_t;
#include "ctk/ctk-console.h"
#define CH_ULCORNER 0xDA
#define CH_URCORNER 0xBF
#define CH_LLCORNER 0xC0
#define CH_LRCORNER 0xD9
#define CH_ULCORNER '+'
#define CH_URCORNER '+'
#define CH_LLCORNER '+'
#define CH_LRCORNER '+'
#define CH_ENTER '\r'
#define CH_DEL '\b'
#define CH_CURS_UP -1

View file

@ -113,7 +113,7 @@ console_init(void)
atexit(console_exit);
memset(blank, ' ', sizeof(blank));
memset(hline, 0xC4, sizeof(hline));
memset(hline, '-', sizeof(hline));
}
/*-----------------------------------------------------------------------------------*/
void
@ -264,7 +264,7 @@ cvline(unsigned char length)
y = wherey();
for(i = 0; i < length; ++i) {
cputcxy(x, (unsigned char)(y + i), (char)0xB3);
cputcxy(x, (unsigned char)(y + i), '|');
}
}
/*-----------------------------------------------------------------------------------*/