Thread: terminal emulator issue - FreeBSD

  1. #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

  2. #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;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Clearing Terminal
    By mrginger in forum C Programming
    Replies: 3
    Last Post: 04-15-2009, 11:58 AM
  2. Console, Terminal and Terminal Emulator
    By lehe in forum C Programming
    Replies: 4
    Last Post: 02-15-2009, 09:59 PM
  3. using su with pseudo terminal
    By oncemyway in forum Linux Programming
    Replies: 2
    Last Post: 04-30-2007, 10:52 AM
  4. [Need Help] serial port programming on freeBSD
    By Hermisky in forum Networking/Device Communication
    Replies: 2
    Last Post: 07-13-2006, 06:51 PM
  5. freebsd and redhat dual boot.
    By xddxogm3 in forum Linux Programming
    Replies: 1
    Last Post: 05-09-2004, 06:06 PM