Closed ManucrackYT closed 7 months ago
This suggests that process.stdout.columns
is set to 0 for some reason. generateSeparator()
probably does need to handle terminal widths that are less than the text's length, but even so, it's odd to get a 0 here.
I didnt touch anything, it just loaded that
The latest commit patches this issue and makes this work properly in very small terminal widths, which is where I'm able to reproduce the error.
However, you don't have a very small terminal width in your screenshot. You're likely to encounter visual glitches which could potentially make the dev console unusable even if you don't get this exception thrown. If you provide the following I'll investigate further:
I'm using a NodeJS server, made on Pterodactyl. This is hosted on Debian 11
OK, looks like Pterodactyl uses Docker internally, so this would apply:
I figured it out - Docker doesn't provide the terminal width so this is actually expected behavior https://github.com/HeyPuter/puter/issues/208#issuecomment-2031381495
So we just need to make sure nothing assumes that the terminal size is reasonable.
Everything works with the latest Puter version, thanks