bhyve/nmdm/cu console paste in problem

2024-05-11 Thread Bjoern A. Zeeb

Hi,

I run a development bhyve in a tmux session next to it a console using
cu on the nmdm device.

When I try to paste text in on a vi started on the console it stops at
some point rather than pasting it all.

This is a direct root login on the console with csh in case that would
matter.  FreeBSD is 15-CURRENT from April on amd64.

For example I tried to paste a reproducer script out of a PR in and it
stopped in the middle of a line.

If I open vi in the same tmux session in another pane it pastes just
fine so I assume it is cu/bhyve/nmdm.

Has anyone noticed that before?

/bz

--
Bjoern A. Zeeb r15:7



Re: bhyve/nmdm/cu console paste in problem

2024-05-11 Thread Paul Vixie
i've never been able to get tip or cu to accept a paste. this was not 
the only reason but it was one reason why i wrote rtty many years ago.


/usr/ports/sysutils/rtty

hard to configure, sorry, it didn't have to scale.



Re: bhyve/nmdm/cu console paste in problem

2024-05-11 Thread Bakul Shah
I presume bhyve emulates a serial device, has a limited buffer and
can only work so fast before dropping characters

Your best bet may be to use picocom or some such term emulator
program with a builtin support for "file transfer" or can use
an external program such as sz/rz which are designed to deal with
lossy serial lines. Put your "paste" in a host file and xfer it.
Alternately add another emulated net port and ssh in (if you are
debugging networking, this may require some ingenuity!).