|
what a terrible night to program a curse
|
# ? Feb 15, 2024 17:18 |
|
|
# ? May 15, 2024 02:54 |
|
graph posted:what a terrible night to program a curse
|
# ? Feb 15, 2024 17:35 |
|
Silver Alicorn posted:thanks anyway yw
|
# ? Feb 15, 2024 17:38 |
|
From MY perspective python is a nightmare without virtual environments, and even then you have to worry about pip package dependencies. And then that sucks so we use poetry to create our local venvs and pip reqs. And then docker to actually run anything. OSs seem to have a habit of needing a specific python version and it's never the one you want. This is the same for any non compiled scripting language, and I guess same for compiled too to an extent though it's more hardware architecture based? Don't know if that helps but good luck OP.
|
# ? Feb 15, 2024 17:38 |
|
Also on windows you can and should be using Linux subsystem. It's actually good
|
# ? Feb 15, 2024 17:43 |
|
yeah I just wanted to see if it would work really.
|
# ? Feb 15, 2024 17:47 |
|
At that rate you may be able to do something like this https://pyinstaller.org/en/stable/ As far as I can tell it bundles up a python version, your code and all the dependencies as a little standalone executable for a target platform. It should just be 'runnable' with the overhead of a bigger executable size. Never tried it though outside of Deno which is a JS runtime as a standalone
|
# ? Feb 15, 2024 17:56 |
|
I vaguely remember having to janitor some things so that the same python curses script would work on both linux and windows. I forget what it was but there is something about most windows curses implementations that is very slightly off. I don’t remember what that is now, so you’re welcome for this very useful tip!
|
# ? Feb 15, 2024 19:30 |
|
thanks I had it working in an older project so I’ll see if there’s any special incantations I needed back then.
|
# ? Feb 15, 2024 19:34 |
|
Sophisticated interfaces, I type my curses in Comic Sans.
|
# ? Feb 15, 2024 19:48 |
|
I'm a goober and didn't realize curses was a module level c wrapper "The Windows version of Python doesn’t include the curses module. A ported version called UniCurses is available." https://pypi.org/project/UniCurses/
|
# ? Feb 15, 2024 20:00 |
|
one of the bbs software packages i used to gently caress with actually used curses to give the ability to draw windows etc. it kinda ruled. i built a yospos browser inside of it
|
# ? Feb 15, 2024 23:55 |
|
Best Bi Geek Squid posted:op make a yospos roguelike Jonny 290 posted:a yospos browser inside of it the people have spoken, op. they want the pos
|
# ? Feb 16, 2024 00:29 |
|
The game in question is spacepos so
|
# ? Feb 16, 2024 00:30 |
|
Hed posted:notcurses looks pretty cool whoa this owns
|
# ? Feb 16, 2024 05:50 |
|
Cybernetic Vermin posted:i like rich for just easily prettying up a program: https://github.com/Textualize/rich this seems cool too and i think i'm gonna use it
|
# ? Feb 16, 2024 05:50 |
|
i'm still programming curses. also I've learned how to make a tree style data structure, serialize it as json and load it back in. another tool in my belt
|
# ? Feb 16, 2024 05:54 |
|
i think rich displays that (formatted, obviously) for you? one of the examples shows something like that
|
# ? Feb 16, 2024 05:56 |
|
cool
|
# ? Feb 16, 2024 06:13 |
|
huh, what is this using libav/ffmpeg for? afaik there's a ncurses output device for ffmpeg/ffplay, but other than that i've never seen support for notcurses
|
# ? Feb 16, 2024 06:20 |
|
json derulo
|
# ? Feb 16, 2024 22:25 |
|
Beeftweeter posted:huh, what is this using libav/ffmpeg for? afaik there's a ncurses output device for ffmpeg/ffplay, but other than that i've never seen support for notcurses It's so it can embed images/moving images but I haven't played around with this functionality much. But you can see it here: https://www.youtube.com/watch?v=dcjkezf1ARY (skip to 20s, I forget how to make the SA-formatted tagged YT link do it)
|
# ? Feb 16, 2024 22:43 |
|
huh, turns out I can't just use the escape key cause of something called "escape sequences"? weird
|
# ? Feb 17, 2024 01:38 |
|
Silver Alicorn posted:i'm working on a project and I'm doing it in python with curses. seems cool so far. it tells me when the terminal size changes and I can write text to the screen and handle input. I'm not having too much trouble finding documentation/examples. i used some python cli library i think it was this https://github.com/tiangolo/typer writing a curses app seems cool maybe i’ll try it
|
# ? Feb 25, 2024 00:20 |
|
curses is pretty simple and it's available on many systems
|
# ? Feb 25, 2024 00:28 |
|
i use curses every time i have to write code
|
# ? Feb 25, 2024 01:46 |
|
well-read undead posted:i curse a lot when i'm programming, does that help op?
|
# ? Feb 25, 2024 01:47 |
|
https://esolangs.org/wiki/Fuckfuck programming in curses
|
# ? Feb 25, 2024 02:22 |
|
quote:This is a very sanitised version of hello world.
|
# ? Feb 25, 2024 02:36 |
|
outhole surfer posted:https://esolangs.org/wiki/Fuckfuck these things are never clever or funny and they just strike me as tragic wastes of the human spirit
|
# ? Feb 25, 2024 02:53 |
|
rotor posted:these things are never clever or funny and they just strike me as tragic wastes of the human spirit i dunno -- brainfuck is a fun/clever toy, and f*ckf*ck is just a play on brainfuck, subbing in curse words for operators.
|
# ? Feb 25, 2024 03:27 |
|
yes exactly
|
# ? Feb 25, 2024 03:29 |
|
Silver Alicorn posted:curses is pretty simple and it's available on many systems are you sure? can you double check?
|
# ? Feb 25, 2024 03:49 |
|
Silver Alicorn posted:curses is pretty simple and it's available on many systems it does not work though
|
# ? Feb 25, 2024 04:45 |
|
it's a library from 1978 before unix even had asynchronous interfaces slightly papered over by system v and later by the open group just absolutely abysmal
|
# ? Feb 25, 2024 04:49 |
|
term.h feels relatively modern in comparison
matti fucked around with this message at 04:53 on Feb 25, 2024 |
# ? Feb 25, 2024 04:50 |
|
have you considered ncurses? https://en.wikipedia.org/wiki/Ncurses it's a lot like curses. except it is new and improved with better interfaces. it's what the freebsd installer uses even
|
# ? Feb 25, 2024 11:47 |
|
lol
|
# ? Feb 25, 2024 12:11 |
|
good that someone said, because my memory of (n)curses is that it is one of those ancient lovely libraries that was really bad even when it was new. both in that it is incredibly convoluted for what it is, and kind of notably i believe it had way less functionality than most terminal libraries at the time. so i opt to read the "curses" in the thread title as the more general "anyone doing cool and thought through ui on the terminal", which i do love.
|
# ? Feb 25, 2024 13:08 |
|
|
# ? May 15, 2024 02:54 |
|
ncurses is fine, actually. last updated 2022. if you've used screen, you've enjoyed it yourself. it's still under mit license even
|
# ? Feb 25, 2024 13:11 |