PDA

View Full Version : terminal emulator issue - FreeBSD



olbas
07-13-2004, 12:05 PM
OS: FreeBSD 5.2.1
X: 4.3.0_14

Hey, I'm having trouble diagnosing the issue I'm experiencing, could someone please point me in the right direction.

I'm trying to display the following ASCII characters (decimal) 186, 187, 188, 205.
They're displaying fine in the console, though both Eterm and xterm fail to display the correct character in relation to the code.


Here's a piece of code that's doing the work


unsigned char line[MAX] = { 0 };
unsigned int a_ctr, b_ctr; /* counter */

/* LTopCorner, hside line and RTopCorner */
a_ctr = 0;
line[a_ctr] = 201;
for (a_ctr = 1; a_ctr < width; a_ctr++)
line[a_ctr] = 205;
line[width] = 187;

puts(line);


Any help is appreciated :)

linuxdude
07-13-2004, 04:39 PM
works on my computer in Eterm(The e is captalized)
#include <stdio.h>

int main(void){
printf("%c 186, %c 187, %c 188, %c205\n",186,187,188,205);
return EXIT_SUCCESS;
}