Giter Club home page Giter Club logo

Comments (6)

kdheepak avatar kdheepak commented on May 26, 2024 1

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.

kdheepak avatar kdheepak commented on May 26, 2024

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.

yakir12 avatar yakir12 commented on May 26, 2024

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.

kdheepak avatar kdheepak commented on May 26, 2024

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.

kdheepak avatar kdheepak commented on May 26, 2024

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.

kdheepak avatar kdheepak commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.