OpenComputers II

OpenComputers II

27.1k Downloads

How to get size of the terminal?

MHDtA-dev opened this issue ยท 3 comments

commented

There is no possible ways to get count of lines or columns in the terminal of the computer. tput doesn't work, stty size doesn't work, variables $LINES and $COLUMNS also doesn't work. I tried to get the size in c by using ioctl, but it returns zero. I Can't make any programs for this mod because terminal size is important information for me.

s1

s2

s3

commented

Apparently this might be a problem with busybox.

commented

Added COLUMNS and LINES env vars.

commented

Added in 8798f95