[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] xen console dimensions



On 2014-06-24 07:12, Ian Campbell wrote:
> On Mon, 2014-06-23 at 14:52 -0400, Phillip Susi wrote:
>> When I run xl console or xl create -c to connect to the console of the
>> guest, /dev/hvc0 in the guest has unknown or default 80x25 dimensions
>> rather than being informed of the dimensions of the terminal I run xl
>> console from.  Is this something wrong with my configuration, or a
>> currently unsupported feature of xen and/or the hvc driver?
> 
> hvc has essentially the same properties as a serial console (as in rs232
> etc).
> 
> I think it is normal for such things to be unaware of the dimensions of
> the terminal emulator window on the "host" side.
> 
> Ian.
> 
> 
Even in those cases, it is still possible (in theory) to get the window
dimensions by using ANSI escape sequences to try to set the cursor to
the position 1000,1000, and then read back the actual position (busybox
uses this to determine terminal size for the apps that actually care
about it, like vi and ls), but that trick doesn't seem to work correctly
on /dev/hvc devices, regardless of what you set TERM to.
Interestingly, the issues with this that I have only seem to affect
terminal width, until I go into something screen/frame based like vi, at
which point it clips the height as well.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.