Software :: Vim To Render Terminal Colouring Using Escape Characters?

Nov 2, 2010

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)?

View 1 Replies


ADVERTISEMENT

General :: Does Non-printing Characters Escape Characters Still Needed For PS1 Definition?

Aug 28, 2011

While modifying the definition of my PS1, I saw that "[" and "]" markers should be added to help bash to compute the right display lenght. Many exemples on the web do not use them or even mention them.I searched for a solution to add them automatically, like with sed, but I didn't find any example.Are they still needed and is there a recommandation not to use sed to define PS1?

View 1 Replies View Related

Programming :: Escape Characters In System?

Nov 11, 2010

My goal is to send escape characters from Linux to make scanner's LED blink. I've started with a simple "beep" command:
echo -e "�7"

and it worked. We are using WaveLink emulator and the escape sequences for the LED are
echo -e "�33%150;200;5L"

Linux returns me this: 150;200;5L
So, it doesn't work. What am I doing wrong for the LED sequences?

View 1 Replies View Related

General :: Escape Characters In Watch Command

Oct 20, 2009

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).

View 2 Replies View Related

CentOS 5 :: Emacs Comes Up, But Characters Render As Empty Boxes?

Jan 22, 2009

My X-windows *server* is a Cygwin box. I installed the entire X11 packages. on the centos machine, I installed xterm and emacs.xterm comes up fine and the characters in the window are fine.with emacs, the characters in the windows are empty boxes.Do I need to install some things on the centos end to get the characters to render?

View 1 Replies View Related

General :: Removing The Escape Characters From GNU Screen's Screenlog.%n?

Jan 22, 2010

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?

View 3 Replies View Related

General :: Replace New Line With <br /> And Escape Special Characters?

Feb 6, 2011

I wish to replace a new line with br (html) but it doesn't seem to work

Code:

message=$(echo ${FORM_message} | tr '
' '<br />' )

what it gives me seems to be ... b...? I am also having problem escaping hash sign in cut command:

Code:

list=$(echo "$line" | cut -d'#;#' -f1) ;

my intention is to split the line with "#;#"

View 5 Replies View Related

Slackware :: Dhclient Does Not Strip Or Escape Shell Meta-characters

Apr 6, 2011

dhclient does not strip or escape shell meta-characters

Summary: dhclient doesn't strip or escape certain shell meta-characters in dhcpd responses, allowing a rogue server or party with with escalated privileges on the server to cause remote code execution on the client.

CVE:

ISC dhclient did not strip or escape certain shell meta-characters in responses from the dhcp server (like hostname) before passing the responses on to dhclient-script. Depending on the script and OS, this can result in execution of exploit code on the client.

CVSS Score:

For more information on CVSS scores, visit [url]

Workarounds:

On SUSE systems, it is possible to disable hostname update by setting DHCLIENT_SET_HOSTNAME="no" in /etc/sysconfig/network/dhcp.

Other systems may add following line to dhclient-script at the beginning of the set_hostname() function:

In environments where filters/acls can be put into place to limit clients to accessing only legitimate dhcp servers, this will protect clients from rogue dhcp servers deliberately trying to exploit this bug.

However, this will not protect from compromised servers.

Active exploits:

Solution:

Upgrade to 3.1-ESV-R1, 4.1-ESV-R2 or 4.2.1-P1. [url]

No patch is available for 4.0.x as it is EOL. Anyone running 4.1.x should upgrade to 4.1-ESV-R2.

Acknowledgments:

Revisions:

View 1 Replies View Related

General :: Convert Shell Logs - Incl. Escape Characters - To HTML?

Mar 6, 2010

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.

View 1 Replies View Related

Ubuntu :: Terminal Won't Render Or Display?

Aug 14, 2011

I upgraded from 10.10 to 11.04Most things appear to work, however I can not use my terminalI can open the terminal (the standard terminal, as well as guake)however it will not render on the screen.It appears as an invisible window. I can type into the terminal area and the commands will process, but I can't see what im typing.Fspot is another window which will not render, however chromium and other programs open fine.I have changed my nvidia driver several times (the default one, nvidia's one and nouveau's manual compile), but this doesn't resolve the issue.Ive tried editing my grub conf file /etc/default/grub and un-commented GRUB_GFXMODE=1024X768

View 1 Replies View Related

Fedora :: Prevent Terminal Escape $ Sign In Auto-complete F15?

Jun 15, 2011

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?

View 7 Replies View Related

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?

View 1 Replies View Related

Programming :: Isatty - Terminal Emulators Don't Render Right To Left Languages Properly

Oct 13, 2010

I'm new to Linux and these forums, but programmed in C++ on other systems. I discovered several Linux terminal emulators don't render Right to Left languages properly and so as an exercise I writing my own. It based on GtkTextView widget. Basically is working, but the shell won't issue prompts because it doesn't think my terminal emulator is actually a terminal (isatty returns false)

View 3 Replies View Related

Ubuntu :: Hexadecimal Characters In Evolution And Terminal?

Jun 15, 2010

I have been dredging the internet trying to find the answer to this and frankly, my brain hurts. On some e-mails that show up fine in Windows are showing up with hexadecimal characters in Evolution. I assume that it is because of the encoding because I have downloaded every font in the book, it seems, including the microsoft tty fonts. I only can find how to change the encoding on Evolution and aside from foreign (I'm in US) encodings I just have the unicode 7 & 8 which don't help. I'm thinking there is some sort of proprietary Microsoft encoding that I need.

View 9 Replies View Related

Slackware :: Specials Characters Don't Appear And Terminal Have No Colors

Sep 10, 2010

I use slackware64 13.1. In my root account the terminal have colors for folders, files, etc and characters like appear correct.I create a normal account for me, but specials characters don't appear and terminal have no colors.I read in a lot that I need to configure a .bashrc and a .bash_profile but I don't found this files in my root account to get some guide lines.

View 5 Replies View Related

Ubuntu :: Navigating Folders With Unreadable Characters In Terminal?

Nov 12, 2010

I'm trying to get more acquainted with the terminal but have run into a problem. I have a flash drive that originally had a name that consisted of numbers and letters. After using the flash drive on Windows recently, I saw that its name had changed and now contains special characters (the name is now �NPM=:�N). It poses no problem when navigating through folders graphically, but because I usually have multiple external drives and the first character of the flash drive name is a special character, I have no idea how to 'cd' to the flash drive from the terminal. So the only solution I see is to either type these special characters in the terminal or somehow cycle through all the folders in /media with the keyboard.

View 2 Replies View Related

Ubuntu :: Display Asian Characters In Gnome-terminal?

Dec 31, 2010

I am having issues with displaying Asian characters when using the $ tree command. I have tried changing it via Terminal -> Set character Encoding -> Unicode (UTF-8.) in terminal options.I have also tried changing it to various other Asian encodings as well.Asian characters do display correctly in Pcman, Firefox, Leafpad and Terminal if I open Terminal from Pcman. When I try the command

[code]....

View 1 Replies View Related

Software :: Terminal And Konsole Windows Show Strange Characters

Oct 1, 2009

When I open a terminal or konsole window, output (either STDOUT or STDERR) sometimes contains funny characters instead of something meaningful. Can someone explain how I might correct this situation?

ANALYSIS:
One very repeatable example involves using the manual page command

Code:
man set... man page output ...upstart - event-based init daemon

In my copy of the output, there are several problems in the very first screen. In the synopsis section, there is "{ value | ?value? ..." Replace the '?' with a lower-case-a-under-a-carat character (a-hat).
I suspect the garble character might be apostrophe in real life.

In other places, I see var?/able or how?/ever or trans?/action where the '?' is again a-hat and the '/' represents end of line or newline. I suspect the garble character might be a hyphen in real life.

All of this suggests that there is a conflict between the character stream written to STDOUT by the man command and the character-display settings (is that "code page" or similar?) of the specific terminal or konsole in use.

In specific, I use konsole v1.6.6 from KDE v3.5.10. In general, I'm running Ubuntu Hardy (v8.04.3 LTS).

View 5 Replies View Related

Software :: Terminal Shows Unicode Squares For Control Characters

Dec 27, 2009

My terminal shows unicode squares (the little square with it's 2 byte unicode value inside it), whenever I press a control character while running a program (ex. cat or ping).See this example. Here I show the key's I pressed then turn off echoctl, and repeat the sequence. http://imagebin.ca/img/mXbutJ1.png

the 0003 is when I pressed Ctrl+C, and the 001A is when I pressed ctrl+z.Can anybody tell me why this is or how to turn it off. This is inside a gnome-terminal session, though I don't think it's gnome-terminal.If, inside this exact same bash session I open screen (by typing "screen"), it doesn't do this anymore, and ctrl+c/z/etc is completely quiet.

View 5 Replies View Related

Ubuntu :: Delete All ASCII Characters In File - Leave Chinese Characters Only

Jul 8, 2011

What command could I use in terminal to delete all ASCII characters? That is, delete a-z, A-Z, 0-9, and all punctuation? I have a file containing Chinese characters, and I want to remove everything else and leave just the Chinese.

I can use grep to leave only the lines that have Chinese in them, but this still leaves a lot of non-Chinese stuff on those lines. Does anyone know how I could actually remove everything that isn't Chinese?

View 4 Replies View Related

OpenSUSE :: UTF-8 Characters On Vi / Can't Handle Those Characters Properly

Jun 16, 2010

I have my OpenSuse 11.1 box set up with utf-8, however, every time I try to open a file with utf-8 characters with vi it can't handle those characters properly.

View 6 Replies View Related

Ubuntu :: How To Render Web-pages Right Way?

Mar 2, 2011

I am a web developer and fonts are crucial to my job.All i want is firefox to render the fonts just like if im on a windows machine, is this possible?For example i install tahoma and microsoft core fonts but in the FF they're not appearing right. This is a straggle to my work and believe me, i 've searched the entrire internet for a solution!

View 8 Replies View Related

OpenSUSE :: KDE Widgets Do Not Render Correctly?

Aug 20, 2010

I installed Suse 11.3 a couple days ago. I have been using Ubuntu for the last 2 years and wanted to try something new. Everything has been working great so far except the widgets.

To add a widget, I click the icon on the right of the toolbar, click "Add Widget", and drag the widget to the desktop. When the widget appears it is stretched to the full width of the display and everything is scrunched vertically. A screenshot of the problem is below.

View 2 Replies View Related

Ubuntu :: Fonts Don't Render Properly

May 4, 2011

I just installed Ubuntu 11.04 with unity. Occasionally I will have text in firefox that doesn't render properly. It will have horizontal lines through it. I have attached an example of the problem I am having.

Is this a bug in 11.04?

View 6 Replies View Related

Red Hat / Fedora :: Render Error Detected?

Oct 14, 2010

I'm using Fedora 12, also to new to Linux, recently while booting Fedora I've got the below message on the screen and the computer was not responding. render error detectedEIR : 0x00000010[drm : i915_handle_error]

View 3 Replies View Related

Slackware :: Do FF & SM Render Fonts Differently

Jan 28, 2011

Some time ago I optimised my fonts following dugan's great tutorial. I mostly used Seamonkey to browse so I didn't notice the difference until today I ran Firefox. The font preferences seem to be identical, yet the fonts look differently on each browser. See the attachments (the browser on the left-hand side is Seamonkey)

View 2 Replies View Related

Red Hat :: SSH Banner Escape Codes?

Sep 22, 2010

I have modified /etc/issue with the following:

Code:
Today is d @
So when logging in locally you get todays date and time. I want this for SSH users as well

[code]....

View 1 Replies View Related

Debian Multimedia :: Can't Render Text With Kino

Feb 11, 2015

When trying to render text with kino on amd64, I get:

Kino experienced a segmentation fault.

Dumping stack from the offending thread

Obtained 2 stack frames.
kino() [0x43bdb0]
/lib/x86_64-linux-gnu/libc.so.6(+0x321e0) [0x7f844b8401e0]

Done dumping - exiting.

I tried 'rm -rf ~/.kino-history' but this did not work.

I realized what I could have done wrong. I added deb-multimedia.org as a repository and installed mythtv and avidemux. I also did an update with aptitude and an upgrade with aptitude.

View 1 Replies View Related

Ubuntu :: Render Password Visible During Login?

Jan 3, 2010

Is there a way to temporarily make the Ubuntu login password visible as it is being typed (i.e. instead of the row of dots) during the Ubuntu login process so that I can explain the login process to a person with a learning disability ?

View 4 Replies View Related

Ubuntu :: Render Error Detected Bug 444372

Apr 12, 2010

I think I have Bug #444372 which seems to be fixed and available. I have installed Ubuntu 9.10 l Linux 2.6.31-20generic #58-Ubuntu SPM Fri Mar 12 i686 GNU This was listed as fixed 2010-02-10 and Bug Watch Updater on 2010-03-02 Changed in linux:

status: Confirmed → Fix Released

I installed 9.10 by ISO DVD gotten from the Ubuntu website after 2010-03-02.I have installed all updates in the Update Manager today.The error output is still showing up in my syslog:

render error detected, EIR: 0x00000010
[drm:i915_handle_error] error EIR stuck: 0x00000010, masking
render error detected, EIR: 0x0000010

My system hangs frequently. The desktop looks normal and the mouse is alive but nothing on the desktop will respond. CTL ALT F2 does not respond. I'm not sure if this bug is related.My hardware is an emachine D2823 Celeron D 325 with 256MB. Not the best and I expect it to be slow but not hang forcing a plug pull.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved