Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit with cd to current directory in Windows #85

Open
graphixillusion opened this issue Aug 12, 2023 · 14 comments
Open

Exit with cd to current directory in Windows #85

graphixillusion opened this issue Aug 12, 2023 · 14 comments
Labels
Awaits testing Needs to be tested enhancement New feature or request todo Windows

Comments

@graphixillusion
Copy link

Specifications

  • OS: Windows 11 x64
  • Terminal: Windows Terminal
  • TUIFI Version: v.3.3.1

Describe the bug

Expecting pdcurses at: C:\Users\USER\scoop\persist\python\Lib\site-packages\unicurses/64 bit binaries/pdcdllu/pdcurses.dll

Additional context

I have installed this with python which was installed with scoop under Windows 11 x64. The program's ui starts and i can navigate: the simple operations works good like cut, paste, move, even shift tab works but for example if i hit ctrl +e it will exit to the prompt with the above message. Even tuifi --version shows this error. I've also checked if the pdcurses.dll file is present in the specified path and the file is there so i don't know what's going on...

@GiorgosXou
Copy link
Owner

GiorgosXou commented Aug 13, 2023

Just remove this line under C:\Users\USER\scoop\persist\python\Lib\site-packages\unicurses\__init__.py, it's just a print(...) function I forgot to remove. lol

@graphixillusion
Copy link
Author

@GiorgosXou But the CTRL+E shoudn't exit to the prompt in the current directory selected in the gui?

@GiorgosXou
Copy link
Owner

GiorgosXou commented Aug 13, 2023

Although it is not mentioned, this trick is not supported for windows at the momment

@GiorgosXou GiorgosXou added Windows enhancement New feature or request and removed Solved labels Aug 13, 2023
@GiorgosXou GiorgosXou changed the title Expecting pdcurses at: C:\Users\USER\scoop\persist\python\Lib\site-packages\unicurses/64 bit binaries/pdcdllu/pdcurses.dll Exit with cd to current directory in Windows Aug 13, 2023
@GiorgosXou GiorgosXou added the Awaits testing Needs to be tested label Dec 22, 2024
@GiorgosXou
Copy link
Owner

GiorgosXou commented Dec 22, 2024

0b3fffc Awaits testing on windows

@graphixillusion
Copy link
Author

0b3fffc Awaits testing on windows

The last version crashes on start with this error on Windows

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\USER\scoop\apps\python\current\Scripts\tuifi.exe\__main__.py", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "C:\Users\USER\scoop\apps\python\current\Lib\site-packages\TUIFIManager\__main__.py", line 46, in main
    fileManager  = TUIFIManager(0,0, HEIGHT,WIDTH, (True,True,True,True), **args, is_focused=True)
  File "C:\Users\USER\scoop\apps\python\current\Lib\site-packages\TUIFIManager\__init__.py", line 155, in __init__
    if stty_a('^Z')               : signal.signal(signal.SIGTSTP, self.suspend_proccess)
                                                  ^^^^^^^^^^^^^^
AttributeError: module 'signal' has no attribute 'SIGTSTP'

@GiorgosXou
Copy link
Owner

@graphixillusion I just installed python 3.13.1 with tuifi 5.0.5 on windows 11 and I haven't had any issue running it. Do you use WSL by any chance? Or how did you install it?

@GiorgosXou
Copy link
Owner

Also, what terminal do you use?

@graphixillusion
Copy link
Author

tuifi --version
TUIFIManager v.5.0.5 | Powered by UNI-CURSES

python --version
Python 3.13.1

I'm using windows terminal under Windows 11 24h2

@GiorgosXou
Copy link
Owner

GiorgosXou commented Dec 23, 2024

@graphixillusion did you install it via pip or via some other way?

@graphixillusion
Copy link
Author

graphixillusion commented Dec 23, 2024

yes i have installed via pip

pip install tuifimanager

@GiorgosXou
Copy link
Owner

Weird but ok, i'll try a fix and push a new version in a few minutes, let me know if it works

GiorgosXou added a commit that referenced this issue Dec 23, 2024
GiorgosXou added a commit that referenced this issue Dec 23, 2024
@GiorgosXou
Copy link
Owner

GiorgosXou commented Dec 23, 2024

Sorry for my late update, I was fixing another thing and took me a bit more time. I just uploaded the new version on pypi, let me know if it works now (version 5.0.7)

@graphixillusion
Copy link
Author

version 5.0.7 works good, but ctrl+e still doesn't work

@GiorgosXou
Copy link
Owner

For ctl+e to work, you need to configure your own ".bashrc equivalent for windows" based on this script for Linux (I haven't had the time to do so, therefore feel free to do so if you want and make a pull request [shouldn't be hard])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaits testing Needs to be tested enhancement New feature or request todo Windows
Projects
None yet
Development

No branches or pull requests

2 participants