Re: [RFC] Multi-terminal support (Re: [PATCH] terminal split)

2008-11-29 Thread Vesa Jääskeläinen
Robert Millan wrote: > On Tue, Nov 25, 2008 at 10:23:52PM +0100, Yoshinori K. Okuji wrote: >>> I've been thinking... what if we make this generic? I.e. with an event >>> loop, then terminals can register their poll functions to it, and write >>> their stuff to a shared resource the rest of GRUB ca

Re: [RFC] Multi-terminal support (Re: [PATCH] terminal split)

2008-11-28 Thread Robert Millan
On Tue, Nov 25, 2008 at 10:23:52PM +0100, Yoshinori K. Okuji wrote: > > > > I've been thinking... what if we make this generic? I.e. with an event > > loop, then terminals can register their poll functions to it, and write > > their stuff to a shared resource the rest of GRUB can read from. > > F

Re: SPAM-LOW: Re: [RFC] Multi-terminal support (Re: [PATCH] terminal split)

2008-11-26 Thread Amin Azez
* Yoshinori K. Okuji wrote, On 25/11/08 21:23: > On Saturday 22 November 2008 20:54:57 Robert Millan wrote: > >> On Sat, Nov 22, 2008 at 06:42:54PM +0100, Yoshinori K. Okuji wrote: >> >>> However, whenever you want to do more than that, you must control each >>> terminal differently. In par

Re: [RFC] Multi-terminal support (Re: [PATCH] terminal split)

2008-11-25 Thread Yoshinori K. Okuji
On Saturday 22 November 2008 20:54:57 Robert Millan wrote: > On Sat, Nov 22, 2008 at 06:42:54PM +0100, Yoshinori K. Okuji wrote: > > However, whenever you want to do more than that, you must control each > > terminal differently. In particular, the menu code. The menu interface > > may not be unifo

Re: [RFC] Multi-terminal support (Re: [PATCH] terminal split)

2008-11-22 Thread Robert Millan
On Sat, Nov 22, 2008 at 06:42:54PM +0100, Yoshinori K. Okuji wrote: > > However, whenever you want to do more than that, you must control each > terminal differently. In particular, the menu code. The menu interface may > not be uniform with all terminals. A terminal might have the size 80x25.

Re: [RFC] Multi-terminal support (Re: [PATCH] terminal split)

2008-11-22 Thread Yoshinori K. Okuji
On Friday 07 November 2008 20:26:32 Robert Millan wrote: > On Tue, Nov 04, 2008 at 08:12:56PM +0100, Robert Millan wrote: > > - Turn the grub_cur_term_{input,output} pointers into lists, so that > > multiple terminals can be "current" at the same time. > > > > - Implement a "magic" input (o

Re: [PATCH] terminal split

2008-11-08 Thread Yoshinori K. Okuji
On Friday 07 November 2008 20:07:07 Robert Millan wrote: > On Thu, Nov 06, 2008 at 06:20:57PM +0100, Yoshinori K. Okuji wrote: > > Also, a similar technique can be used to implement "getting an output as > > a string". For example: > > > > # Use the same password as the super user. > > set pass

[RFC] Multi-terminal support (Re: [PATCH] terminal split)

2008-11-07 Thread Robert Millan
On Tue, Nov 04, 2008 at 08:12:56PM +0100, Robert Millan wrote: > > - Turn the grub_cur_term_{input,output} pointers into lists, so that > multiple terminals can be "current" at the same time. > > - Implement a "magic" input (or output) terminal that can be attached to > other terminal

Re: [PATCH] terminal split

2008-11-07 Thread Robert Millan
On Thu, Nov 06, 2008 at 06:05:21PM +0100, Yoshinori K. Okuji wrote: > On Tuesday 04 November 2008 18:14:17 Robert Millan wrote: > > On Tue, Nov 04, 2008 at 04:52:20PM +0100, Yoshinori K. Okuji wrote: > > > No ChangeLog? > > > > Here. I ommitted it because I wanted to see if it would need big > > a

Re: [PATCH] terminal split

2008-11-07 Thread Robert Millan
On Thu, Nov 06, 2008 at 06:20:57PM +0100, Yoshinori K. Okuji wrote: > > Also, a similar technique can be used to implement "getting an output as a > string". For example: > > # Use the same password as the super user. > set password=$(sed -ne '/^root:/{s/root:\([^:]*\).*/\1/;p}' /etc/shadow)

Re: [PATCH] terminal split

2008-11-06 Thread Yoshinori K. Okuji
On Tuesday 04 November 2008 19:31:09 Vesa Jääskeläinen wrote: > Yoshinori K. Okuji wrote: > > BTW, I would like to obtain the capability of handling pipes, so that we > > can, say, "help | more". I guess you have the same idea in your mind. > > This should be trivial, once the input and output are

Re: [PATCH] terminal split

2008-11-06 Thread Yoshinori K. Okuji
On Tuesday 04 November 2008 18:14:17 Robert Millan wrote: > On Tue, Nov 04, 2008 at 04:52:20PM +0100, Yoshinori K. Okuji wrote: > > No ChangeLog? > > Here. I ommitted it because I wanted to see if it would need big > adjustments first. OK. The patch looks perfect for me. > > BTW, I would like to

Re: [PATCH] terminal split

2008-11-04 Thread Colin D Bennett
On Tue, 4 Nov 2008 20:12:56 +0100 Robert Millan <[EMAIL PROTECTED]> wrote: > On Tue, Nov 04, 2008 at 08:53:22PM +0200, Vesa Jääskeläinen wrote: > > > > I think multipath would be nice feature. Eg. you can have > > serial/other remote connected and then have local terminal at same > > time. > > I

Re: [PATCH] terminal split

2008-11-04 Thread Robert Millan
On Tue, Nov 04, 2008 at 08:53:22PM +0200, Vesa Jääskeläinen wrote: > > I think multipath would be nice feature. Eg. you can have serial/other > remote connected and then have local terminal at same time. In fact we need that if we ever want to support reading from AT keyboards and USB keyboards a

Re: [PATCH] terminal split

2008-11-04 Thread Vesa Jääskeläinen
Robert Millan wrote: > Hi, > > This patch splits terminal handling in input and output. While at it, it > resolves/removes some of the kludges we had to work around this limitation. > > For example, gfxterm/vga no longer need to assume the input is bios console, > at_keyboard can be used in comb

Re: [PATCH] terminal split

2008-11-04 Thread Vesa Jääskeläinen
Yoshinori K. Okuji wrote: > BTW, I would like to obtain the capability of handling pipes, so that we can, > say, "help | more". I guess you have the same idea in your mind. This should > be trivial, once the input and output are separate, right? I think this would need separated streams design i

Re: [PATCH] terminal split

2008-11-04 Thread Robert Millan
On Tue, Nov 04, 2008 at 04:52:20PM +0100, Yoshinori K. Okuji wrote: > > No ChangeLog? Here. I ommitted it because I wanted to see if it would need big adjustments first. > BTW, I would like to obtain the capability of handling pipes, so that we can, > say, "help | more". I guess you have the s

Re: [PATCH] terminal split

2008-11-04 Thread Yoshinori K. Okuji
On Sunday 02 November 2008 19:11:32 Robert Millan wrote: > Hi, > > This patch splits terminal handling in input and output. While at it, it > resolves/removes some of the kludges we had to work around this limitation. > > For example, gfxterm/vga no longer need to assume the input is bios > consol

[PATCH] terminal split

2008-11-02 Thread Robert Millan
Hi, This patch splits terminal handling in input and output. While at it, it resolves/removes some of the kludges we had to work around this limitation. For example, gfxterm/vga no longer need to assume the input is bios console, at_keyboard can be used in combination with any output terminal,