From: James Coglan Date: 2009-08-06T18:47:30+09:00 Subject: Re: Terminal escape sequences --001636d34bf8e54ad104707601cd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/8/6 Heesob Park > Hi, > > 2009/8/6 James Coglan : > > Hi all, > > > > Looking through the PDoc source to see how it renders the build progress > > meter, I see: > > > > log "\c[[F\c[[K Rendering: #{dest}" > > > > Is there a good reference for these escape sequences anywhere? They're > not > > terribly Google-friendly. > > > "\c[" is same to "\e" > "\c[[F" is invalid sequence. cf: "\c[[f" means "Move cursor to upper > left corner" > "\c[[K" means "Clear line from cursor right" > > Refer to http://ascii-table.com/ansi-escape-sequences-vt-100.php Thanks. \e[F is not listed though on my system it seems to have the effect of returning the cursor to the start of the line, so \e[F\e[K can be used to overwrite the whole of the current line. Anyone know if this is commonly implemented or is it Ubuntu-specific? James --001636d34bf8e54ad104707601cd--