About: How to print full screen width messages   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

The WideMsg() function below prints a single-line [long] message (of up to (&columns-1) length) without the "Press Enter" prompt, guaranteed: " WideMsg() prints [long] message up to (&columns-1) length " guaranteed without "Press Enter" prompt. function! WideMsg(msg) let x=&ruler | let y=&showcmd set noruler noshowcmd redraw echo a:msg let &ruler=x | let &showcmd=y endfun " To test. :set ruler showcmd :call WideMsg(repeat('x',&co-1)) The WideMsg() function above saves values of these two suspect options, echo the message, then restores the options.

AttributesValues
rdfs:label
  • How to print full screen width messages
rdfs:comment
  • The WideMsg() function below prints a single-line [long] message (of up to (&columns-1) length) without the "Press Enter" prompt, guaranteed: " WideMsg() prints [long] message up to (&columns-1) length " guaranteed without "Press Enter" prompt. function! WideMsg(msg) let x=&ruler | let y=&showcmd set noruler noshowcmd redraw echo a:msg let &ruler=x | let &showcmd=y endfun " To test. :set ruler showcmd :call WideMsg(repeat('x',&co-1)) The WideMsg() function above saves values of these two suspect options, echo the message, then restores the options.
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1288(xsd:integer)
Category
  • Scripting
Author
  • Yakov Lerner
Complexity
  • advanced
Created
  • 2006-07-25(xsd:date)
ID
  • 1289(xsd:integer)
NEXT
  • 1290(xsd:integer)
Rating
  • 12(xsd:integer)
abstract
  • The WideMsg() function below prints a single-line [long] message (of up to (&columns-1) length) without the "Press Enter" prompt, guaranteed: " WideMsg() prints [long] message up to (&columns-1) length " guaranteed without "Press Enter" prompt. function! WideMsg(msg) let x=&ruler | let y=&showcmd set noruler noshowcmd redraw echo a:msg let &ruler=x | let &showcmd=y endfun " To test. :set ruler showcmd :call WideMsg(repeat('x',&co-1)) There are two options, 'showcmd' and 'ruler', that force the "Press Enter" prompt after messages that are shorter than screen width. Either of two options, when set, take space on the right of the bottom line. The WideMsg() function above saves values of these two suspect options, echo the message, then restores the options. There is no "Press Enter" prompt, and options are properly restored.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software