* format hook output
@ 2014-11-02 22:03 Ruthard Baudach
2014-11-02 22:25 ` [sup] " Gaute Hope
0 siblings, 1 reply; 2+ messages in thread
From: Ruthard Baudach @ 2014-11-02 22:03 UTC (permalink / raw)
To: supmua
[-- Attachment #1: Type: text/plain, Size: 472 bytes --]
If I puts or print something inside a hook, it is put on the bottom of
sup.
One problem is, that \n does only produce a "next line" and no "carraige
return", a problem often occoring if you try to print to a curses
controlled terminal.
How do I output some information in a curses-compliant way from a hook?
Or where would be a good starting point to search the code of sup?
Regards,
Ruthard
--
Please encrypt and sign emails.
My PGP-Id: AC5AC6C2
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [sup] format hook output
2014-11-02 22:03 format hook output Ruthard Baudach
@ 2014-11-02 22:25 ` Gaute Hope
0 siblings, 0 replies; 2+ messages in thread
From: Gaute Hope @ 2014-11-02 22:25 UTC (permalink / raw)
To: supmua, Ruthard Baudach
Excerpts from Ruthard Baudach's message of November 2, 2014 23:03:
> If I puts or print something inside a hook, it is put on the bottom of
> sup.
>
> One problem is, that \n does only produce a "next line" and no "carraige
> return", a problem often occoring if you try to print to a curses
> controlled terminal.
>
> How do I output some information in a curses-compliant way from a hook?
> Or where would be a good starting point to search the code of sup?
Hi,
You can use the buffermanager `say` methods or the log methods. When in
ncurses mode regular puts to stdout will only mess up stuff.
Cheers, Gaute
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-02 22:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-02 22:03 format hook output Ruthard Baudach
2014-11-02 22:25 ` [sup] " Gaute Hope
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox