public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH 0/2] s390x: Improve console handling
@ 2023-07-07 14:54 Janosch Frank
  2023-07-07 14:54 ` [kvm-unit-tests PATCH 1/2] lib: s390x: sclp: Add carriage return to line feed Janosch Frank
  2023-07-07 14:54 ` [kvm-unit-tests PATCH 2/2] lib: s390x: sclp: Add line mode input handling Janosch Frank
  0 siblings, 2 replies; 4+ messages in thread
From: Janosch Frank @ 2023-07-07 14:54 UTC (permalink / raw)
  To: kvm; +Cc: linux-s390, imbrenda, thuth, david, nsg, nrb

Console IO is and has been in a state of "works for me". I don't think
that will change soon since there's no need for a proper console
driver when all we want is the ability to print or read a line at a
time.

However since input is only supported on the ASCII console I was
forced to use it on the HMC. The HMC generally does not add a \r on a
\n so each line doesn't necessarily start at column 0. It's time to
finally fix that.

Also, since there are environments that only provide the line-mode
console it's time to add line-mode input to properly support them.

rfc -> v1:
	- Switched to \r\n from \n\r
	- Removed console clear
	- Added truncation logic to maintain 2k limit

Janosch Frank (2):
  lib: s390x: sclp: Add carriage return to line feed
  lib: s390x: sclp: Add line mode input handling

 lib/s390x/sclp-console.c | 193 +++++++++++++++++++++++++++++++++++----
 lib/s390x/sclp.h         |  26 +++++-
 2 files changed, 198 insertions(+), 21 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-10  9:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-07 14:54 [kvm-unit-tests PATCH 0/2] s390x: Improve console handling Janosch Frank
2023-07-07 14:54 ` [kvm-unit-tests PATCH 1/2] lib: s390x: sclp: Add carriage return to line feed Janosch Frank
2023-07-07 14:54 ` [kvm-unit-tests PATCH 2/2] lib: s390x: sclp: Add line mode input handling Janosch Frank
2023-07-10  9:33   ` Nico Boehr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox