C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-13-2004, 12:05 PM   #1
Insomniac
 
Join Date: Mar 2004
Posts: 35
terminal emulator issue - FreeBSD

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
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);
Any help is appreciated
__________________
i386 FreeBSD -- gcc-3.2.1 -- gdb-5.3
olbas is offline   Reply With Quote
Old 07-13-2004, 04:39 PM   #2
Registered User
 
linuxdude's Avatar
 
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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 05:40 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22