General :: Terminal That Supports ANSI Italic Escape Code?
Oct 29, 2010
I would like to replace gvim with vim in the terminal. One of the nice things about gvim is that it is able to display text using italics.
Vim allows setting an ANSI escape code for italics (e[3m), but this does not work in gnome-terminal. Is there a terminal emulator that supports the ANSI escape code for italics?
I'd like to redefine the actual colors that ANSI escape sequences show, i.e. I'd like to personalize what "light red" means and render it as, say, orange. Is there any terminal emulator that works under linux that allows me to do this? how?
I'm writing a tridiagonal solver for sparse linear systems and I coded this decreasing loop:
PHP Code:
xx[NN - 1] = gamma[NN - 1]*BB[NN - 1]; ii = NN - 2; /* Compute the x values: */ while (ii >= 0) { xx[ii] = gamma[ii]*(BB[ii] + xx[ii + 1]); ii = ii - 1; }
now... if ii is declared as an unsigned integer, the code gives me a segmentation fault, but if I declare it as an int, it doesn't. Using DDD I noticed that, as an unsigned int variable, when I finally decrease it, it underflows and blows up to a huge value, ergo giving me an unaccesible direction for xx in the following iteration! I taugh me not to use unsigned int variables for dereasing loops! XD
I am a former Sysop of a BBS and currently resurrecting the BBS. I have been looking for a way to get Gnome Terminal in Fedora 13 configured to support ANSI BBS emulation.
Back in the DOS days, we just loaded ANSI.SYS and ran our terminal software (like Procomm Plus or Qmodem), but I am hoping someone has done this and can help me set it up.
I have already tried Qterrm and the "latest" syncterm. Neither of these worked right. Syncterm hasn't been updated since 2009, so I really don't want to mess too much with that one.
I know you can terminal.app in Mac OS X to do it, so I figure we can too. I REALLY want gnome terminal to be the way to do it.
I am using GPROF for my code profiling ,but it seems GPROF doesn't supports multithread .Does any one know any other technique for profiling the application code I have checked oprofile but it profile kernel ,I just required for C code profiling technique that supports multiple threads
My question is: what option can I set in vim to see the colouring inside the editor as I would get it in my terminal (and switch off any additional syntax highlighting)?
I just installed F15 and although different, I like it a lot. One thing I don't like, however, is the default auto-completion of environment variables in the terminal. In F14 and older, if you type for instance
Code:
ls $HOME and hit TAB, auto-complete will list the contents of $HOME to search deeper, so to say. But in F15, the terminal automatically escapes the $ sign. If you do the same as above, you get
Code:
ls $HOME
instead of
Code:
ls /home/benny/
how to change the auto-complete settings of the terminal so that $'s are not escaped anymore?
I have an OpenBSD server and I access i'm trying to access it via serial port with a Opensuse computer. I have been using Minicom but its 2 emulation types (vt102 and ANSI) Dont seem to be working for me. Is there a terminal emulator for linux that supports wyse50? That would be best.
I have been working in macromedia dreamviewer for editing html and php files, Just now I moved to linux system by installing xampp , my question is that I need a best html and php editor that supports both the design view and code view as like in dreamviewer.
I have installed a Virtual machine.I use Virtual Box for the same. My host OS is Windows XP SP3. I have assigned it 500mb of Ram and it works fine. But my problem is that my Keyboard does not work in Ubuntu terminal whilst writing a source code.
When I use the arrow keys it gives me alphabets A B C D. And also when i press a . it acts as a backspace.I have a cordless Logitech Keyboard.I don't know why my keyboard isn't functioning inside the Terminal (& that to only whilst typing in source codes) I have tried changing the Character Encoding but thats not helping.
This is an interaction between OOo and the font package on Ubuntu, so I have searched both sets of forums fruitlessly. In Open Office when I go to select font characteristics for the so-called MS fonts (Arial for example) instead of the menu showing Bold and Italic, it shows "Negreta" and "Cursiva".
sometimes there are one, sometime there are two exchanges in this log file. the 100= is the stock exchange- if there are two, they are seperated by a comma. i understand how to escape a comma in a regex, but I am having trouble with combining it.
I am unable to compile C++ program in terminal. Whenever I try to add "#include<iostream.h>" it shows an error and thats why I can not use "cout" and "cin" functions. I installed g++ for this but the problem persists.
Need little advice running this command. watch -d 'ps aux | awk '{print $4" "$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr | head'
I get this error message from AWK. awk: cmd. line:1: {print awk: cmd. line:1: ^ unexpected newline or end of string
I have tried all the usual by trying to escape the single and double quotes in the command but same result. The end result should be the a listing of memory hungry processes that are scanned every 2 seconds (watch default value).
i have a cd that shows you an empty directory unless you mount it for the joliet extensions - specifically 25 2f 40. It uses wide characters with the high half null.
Is it possible to remove the ESC sequences in GNU Screen's output file? Things such as colours, tabs and other escape characters make their way into the log files and become difficult to decipher.
I've tried Dr. Google & Co. as well as reading the manual, but haven't been able to find anything suitable.Perhaps I've overlooked something?
When I started I took the defaults and ended up with Evolution.
I have never managed to get it set up to send. It and godaddy are on diffferent planets.
Having used Thunderbird in the past, I downloaded it and it automagically set itself up to send and receive.
So now I use Thunderbird - BUT - when I click on a link in an html page - the mailto macro sends me to something other than THunderbird - perhaps Evolution - and nothing gets sent.
So how do I tell the system that when i click a mailto in firefox I want Thunderbird?
PS I think I found it. In firefox - edit - preferences - applications tab - mmailto - it said Evolution. I changed it so say /usr/bin/thunderbird - will now test it.
YES - Seems that asking a question triggers my brain on how to resolve it. Sorry to waste your time.
the code when recording a screen using terminal command? it has this code "xllgrab".. that's all i can remember.. i read it somewhere in this forum and it really works but i can't find that thread anymore
I have a problem in programing pseudo terminal. In the book APUE (advanced programing in the unix environment) in chapter 15.4: coprocess gives an example of using pipe to operate another program, that provide its input and read its output: Figure 15.18. Figure 15.19 is filter to add two numbers using standard IO. The author said that you must flush the IO buffer in the program which are operated through pipe by another program, however, we cannot add fflush to the source code and re-compile the whole program if we need to use it in another process. It said that pseudo terminal can solve this problem, but I have tried in fedora12 with forkpty call and fail. Source code as follows:
The main process: Code: #include "common.h" #define LINESIZE 256 int main() { int fd[2]; pid_t pid; if( socketpair(AF_UNIX, SOCK_STREAM, 0, fd)<0 ) { perror("create socket error"); exit(1); } int master; struct termios tm; if( tcgetattr(STDIN_FILENO, &tm)<0 ) { perror("tcgetattr error"); exit(3); } struct winsize size; if( ioctl(STDIN_FILENO, TIOCGWINSZ, (char*)&size)<0 ) { perror("ioctl error"); exit(4); } setbuf(stdout, NULL); pid=forkpty(&master, NULL, &tm, &size); if( pid<0 ) { perror("create process error"); exit(2); } else if(pid>0) {//parent close(fd[1]); char line[LINESIZE]; memset(line, 0, LINESIZE); while( fgets(line, LINESIZE, stdin)!=NULL ) { write(fd[0], line, strlen(line)); memset(line, 0, LINESIZE); int n=read(fd[0], line, LINESIZE); if(n>=0) line[n]=0; printf("%s", line); memset(line, 0, LINESIZE); } } else {//child close(fd[0]); if( fd[1]!=STDIN_FILENO ) { if(dup2(fd[1], STDIN_FILENO)!=STDIN_FILENO) { perror("dup2 error"); exit(1); } } if( fd[1]!=STDOUT_FILENO) { if(dup2(fd[1], STDOUT_FILENO)!=STDOUT_FILENO) { perror("dup2 error"); exit(2); } } close(fd[1]); if(execl("./add", "add", (char*)0)<0) { perror("exec error"); exit(3); } exit(0); } //parent wait(NULL); return 0; } The add program reads a line and get two numbers and return the sum of them.
Code: #include "common.h" int main() { int n1, n2; char line[256]; memset(line, 0, 256); while( fgets(line, 256, stdin)!=NULL) { sscanf(line, "%d%d", &n1, &n2); printf("%d", n1+n2); fflush(NULL); /*the program does not work without this sentence why?*/ memset(line, 0, 256); } return 0; }
I'm having an annoying issue with less. What I want is to view logs with important stuff color coded, and be able to correctly use less's search function.
What happens is that less correctly displays color coded text, but offsets the search highlighting.
For instance, if I run "ls -l --color=always | less -R", and then search for some text, the highlighting will be offset if that text (or any text before it) is colored.
I tried forcing LESSANSIENDCHARS by doing a "export LESSANSIENDCHARS=m", but that didn't work.
"less --version" gives me "less 382+iso254", and I am running "SUSE LINUX Enterprise Server 9 (x86_64)".
I am trying to use sed command to repalce one string with other but somehow replacement string contains forwards slash hence getting the error statement garbled!
Is there tool or a regexp that can convert shell escape characters to HTML code?
As an example, here is a logfile from GNU screen:
Which I would like to convert to something like this:
And send as HTML e-mail to an e-mail address, to archive my work.
Here is a related question, which shows how to convert it to regular text, but it would be nice to convert to HTML and not just throw the escape characters away.
I'm trying to figure out whether my system supports PCI Express without opening up the box. lspci doesn't mention "Express" or "PCI-e" anywhere, but dmesg reports that a "PCI Express Hot Plug Controller Driver" is in use.