jed-users mailing list

[2016 Date Index] [2016 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[jed-users] Re: xjed STDIN?


On Fri 2016-09-23 (21:17), John E. Davis wrote:
> Ulli Horlacher <framstag@xxxxxxxxxxxxxxxxxxxx> wrote:
> > Is it possible to use xjed as a GUI pager for STDIN?
> > Something like:
> >
> > some commands ... | xjed -most
> 
> If you add
> 
> define read_from_stdin ()
> {
>    if (isatty (stdin))
>      return;
> 
>    sw2buf ("*stdin*");
>    array_map (Void_Type, &insert, fgetslines(stdin));
>    bob ();
> }
> 
> to your .jedrc file, then you can invoke xjed via:
> 
>   $ some-command ... | xjed --read-from-stdin -f most_mode

Ok, xjed starts with *stdin* buffer but not in most mode: I can enter text
in the buffer.
Though it starts with "MOST" in the status line.


-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<20160924011745.B98A9254A064@xxxxxxxxxxx>
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2016 date index] [2016 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]