public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
To: Greg KH <greg@kroah.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	akpm@osdl.org, rbh00@utsglobal.com, linux-kernel@vger.kernel.org
Subject: Re: [patch 2/7] s390: 3270 fullscreen view.
Date: Fri, 16 Sep 2005 10:07:08 +0200	[thread overview]
Message-ID: <1126858028.4923.11.camel@localhost.localdomain> (raw)
In-Reply-To: <20050915172432.GA9980@kroah.com>

On Thu, 2005-09-15 at 10:24 -0700, Greg KH wrote:
> On Wed, Sep 14, 2005 at 07:31:46PM +0200, Martin Schwidefsky wrote:
> > +struct class *class3270;
> 
> Isn't this a tty driver already?  If so, you don't need to create your
> own class, your devices will just show up in the /sys/class/tty/ area
> just fine.
> 
> Or am I missing something here?

I don't think we can use the tty class for the 3270 driver. The reason
is that there are several ways to access the 3270 device. One of them is
the tty view. Another is the fullscreen view that has nothing to do with
ttys. It allows an application to create its own 3270 data stream
without the line discipline of the tty interfering. 3270 devices are
strange beasts when you compare them to you standard terminal. You don't
get an interrupt for every character you type, but only if special keys
are pressed. One of them is <enter>. The current implementation of the
tty view has an input line at the end of the 3270 screen and we get
complete lines as input. That halfway works for normal command input
although tab completion doesn't work. It completly breaks for editors,
e.g. if you try to use vi on a 3270 tty you are in for nasty surprises.
The only way to get an editor working on the 3270 is the fullscreen view
where the editor itself can setup the complete screen. If you ever used
an editor on an classic s390 operating system you know what I'm talking
about.

To cut the long story short, there is more to a 3270 device then the tty
view. In fact you can compile the 3270 driver without the tty view and
only with the fullscreen view. We still should have a class for the
devices, do we not ?

-- 
blue skies,
   Martin

Martin Schwidefsky
Linux for zSeries Development & Services
IBM Deutschland Entwicklung GmbH



  reply	other threads:[~2005-09-16  8:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-14 15:53 [patch 2/7] s390: 3270 fullscreen view Martin Schwidefsky
2005-09-14 16:10 ` Christoph Hellwig
2005-09-14 17:31   ` Martin Schwidefsky
2005-09-15 17:24     ` Greg KH
2005-09-16  8:07       ` Martin Schwidefsky [this message]
2005-09-16 23:20         ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1126858028.4923.11.camel@localhost.localdomain \
    --to=schwidefsky@de.ibm.com \
    --cc=akpm@osdl.org \
    --cc=greg@kroah.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rbh00@utsglobal.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox