Comments (6)
This has been on my list of things to do and I haven't gotten to it yet. But I'll commit to setting up a Linux VM and debugging this this weekend!
from terminaluserinterfaces.jl.
If you are just interested in getting the size of the terminal you can run the built in Base.displaysize(stdout)
or just Base.displaysize()
.
You might be right about the IOCTL.TIOCGWINSZ
values, I only tested them on a macos. I'll look into it and submit a PR for linux compatible changes.
from terminaluserinterfaces.jl.
I'm on Debian and have the exact same issue (the weird alignment is part of the problem, I assume):
ERROR: ioctl failed: Inappropriate ioctl for device
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] ioctl(::RawFD, ::Int64) at /home/yakir/.julia/packages/TerminalUserInterfaces/ha2Cg/src/ioctl.jl:123
[3] ioctl at /home/yakir/.julia/packages/TerminalUserInterfaces/ha2Cg/src/ioctl.jl:126 [inlined]
[4] terminal_size(::Base.TTY) at /home/yakir/.julia/packages/TerminalUserInterfaces/ha2Cg/src/utils.jl:9
[5] terminal_size() at /home/yakir/.julia/packages/TerminalUserInterfaces/ha2Cg/src/utils.jl:13
[6] Terminal(::Base.TTY, ::Base.TTY) at /home/yakir/.julia/packages/TerminalUserInterfaces/ha2Cg/src/terminal.jl:18 (repeats 2 times)
[7] main() at ./REPL[5]:6
[8] top-level scope at REPL[6]:1
I'm on TerminalUserInterfaces v0.2.0.
from terminaluserinterfaces.jl.
I made some changes in this commit that might resolve this issue: 4236b4c.
I was able to set up a Ubuntu machine as well, so I will be able to do further testing shortly.
from terminaluserinterfaces.jl.
Are you able to test with the latest version master
of the package? I was able to run the examples using Julia 1.5.1 and TerminalUserInterfaces.jl#master
.
from terminaluserinterfaces.jl.
I've dropped the dependency on Termios, so this issue should now be resolved in this release: https://github.com/kdheepak/TerminalUserInterfaces.jl/releases/tag/v0.3.0
from terminaluserinterfaces.jl.
Related Issues (15)
- Documentation: how to generate a set of slides HOT 2
- Error in examples HOT 10
- Use ansi block characters to make smoother progressbars HOT 3
- Missing convenience functions HOT 1
- ioctl failed: Inappropriate ioctl for device HOT 8
- Progress bars not visible. HOT 12
- TagBot trigger issue HOT 50
- undefined reference in disable_raw_mode() HOT 7
- Extra line in Paragraph HOT 3
- terminal "goes dead" after quitting a TUI application HOT 11
- Initialization fails on windows machine HOT 3
- How do you interpret key values? HOT 2
- Version 0.8.0 incompatible with Julia 1.8 and version 0.3.0 lacks documentation
- FocusLost, ERROR: ArgumentError: invalid JSON HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terminaluserinterfaces.jl.