public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] vt: bracketed paste and cursor position
@ 2025-05-14 19:42 Nicolas Pitre
  2025-05-14 19:42 ` [PATCH v2 1/2] vt: bracketed paste support Nicolas Pitre
  2025-05-14 19:42 ` [PATCH v2 2/2] vt: add VT_GETCONSIZECSRPOS to retrieve console size and cursor position Nicolas Pitre
  0 siblings, 2 replies; 9+ messages in thread
From: Nicolas Pitre @ 2025-05-14 19:42 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby; +Cc: Nicolas Pitre, linux-serial, linux-kernel

A different kind of VT console update this time. These patches:

- add bracketed paste support to the VT console

- overcome a /dev/vcsa limitation with cursor position retrieval

In v1 those were submitted together to avoid merge conflicts. Those conflicts
no longer exist but here they are together again for coherence sake.

Changes from v1 (https://lore.kernel.org/all/20250514015554.19978-1-nico@fluxnic.net):

- Changed TIOCL_GETCURSORPOS to VT_GETCONSIZECSRPOS with proper structure.
  Moved to the VT_ space to benefit from unambigous pointer argument and
  vt_compat_ioctl() wrapper. Also motivated by the fact that usage require
  both display size and cursor position so those are joined in one syscall
  requiring a structure.

- Code simplifications suggested by Jiri.

diffstat:
 drivers/tty/vt/selection.c     | 31 +++++++++++++++++++++++++++----
 drivers/tty/vt/vt.c            | 15 +++++++++++++++
 drivers/tty/vt/vt_ioctl.c      | 16 ++++++++++++++++
 include/linux/console_struct.h |  1 +
 include/uapi/linux/tiocl.h     |  1 +
 include/uapi/linux/vt.h        |  9 +++++++++
 6 files changed, 69 insertions(+), 4 deletions(-)

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

end of thread, other threads:[~2025-05-20 16:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14 19:42 [PATCH v2 0/2] vt: bracketed paste and cursor position Nicolas Pitre
2025-05-14 19:42 ` [PATCH v2 1/2] vt: bracketed paste support Nicolas Pitre
2025-05-14 19:42 ` [PATCH v2 2/2] vt: add VT_GETCONSIZECSRPOS to retrieve console size and cursor position Nicolas Pitre
2025-05-15  5:47   ` Jiri Slaby
2025-05-15 16:02     ` Nicolas Pitre
2025-05-16  6:31       ` Jiri Slaby
2025-05-16 16:55         ` Nicolas Pitre
2025-05-20  3:42         ` Nicolas Pitre
2025-05-20 16:34       ` Nicolas Pitre

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