![]() |
| | #1 |
| Insomniac Join Date: Mar 2004
Posts: 35
| terminal emulator issue - FreeBSD 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 Code: 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);
__________________ i386 FreeBSD -- gcc-3.2.1 -- gdb-5.3 |
| olbas is offline | |
| | #2 |
| Registered User Join Date: Mar 2003 Location: Louisiana
Posts: 926
| works on my computer in Eterm(The e is captalized) Code: #include <stdio.h>
int main(void){
printf("%c 186, %c 187, %c 188, %c205\n",186,187,188,205);
return EXIT_SUCCESS;
}
|
| linuxdude is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem Clearing Terminal | mrginger | C Programming | 3 | 04-15-2009 11:58 AM |
| Console, Terminal and Terminal Emulator | lehe | C Programming | 4 | 02-15-2009 09:59 PM |
| using su with pseudo terminal | oncemyway | Linux Programming | 2 | 04-30-2007 10:52 AM |
| [Need Help] serial port programming on freeBSD | Hermisky | Networking/Device Communication | 2 | 07-13-2006 06:51 PM |
| freebsd and redhat dual boot. | xddxogm3 | Linux Programming | 1 | 05-09-2004 06:06 PM |