11-03-2014, 03:56 AM | #1 |
Evangelist
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
Go-Fish from bsdgames
Son wanted it, so here it is! Not fancy but works, OLD school style
Needs kterm as it's command line. KUAL extension. As a side note, I couldn't get more of the bsd games to work as they mostly need ncurses?? and they don't seem to work in kterm that way? Oh well. Any ideas? |
11-03-2014, 05:10 AM | #2 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
I can well understand that they would need ncurses, since that is a de-facto standard for fancy (cough!) console interfaces. However, I don't see why that wouldn't work with kterm. At least when the TERM environment variable is properly set.
|
Advert | |
|
11-03-2014, 05:35 AM | #3 |
Evangelist
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
Ah - maybe that was it - the TERM env. Maybe I can get that fancy boggle to work...
|
11-03-2014, 06:27 AM | #4 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Also note that the Kindle bundles ncurses, but not ncursesw, which might be a problem for some apps.
You might also need to bundle a proper terminfo file for xterm, and forcibly use it: the terminfo db bundled on the Kindle sucks. (cf. htop in USBNetwork for an example of doing just that). Last edited by NiLuJe; 11-03-2014 at 10:53 AM. |
11-03-2014, 07:22 AM | #5 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
Advert | |
|
11-04-2014, 12:10 AM | #6 | |
Evangelist
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
Quote:
I don't understand the relationship between all these files - the terminfo directory/files and all the libraries? how can I know what I need or what to call? Should I just compile ncurses and use those libs and should I make a new terminfo file? I don't see where htop calls or uses the terminfo file. TERM is set to xterm, is there a better one? So much to learn here! Any help, please? |
|
11-04-2014, 03:54 AM | #7 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
If the software is using it, it may well be 'hidden' from view (linked in statically). Apps that recognize 'TERM' are using that setting as an index into the terminfo file (which is a sort of database). That 'tells' the application what character sequences your terminal (or terminal emulator) 'speaks'. I think KTerm defaults to 'xterm' and htop needs to send those character sequences. Very, very "old school" - it has been around nearly as long as *nix. So old, that I may have some of the above details wrong. But the above is the general sense of what is happening. - - - - - 'xterm' is probably correct, but there may be a 'linux' index also - you might try that. (I think they are the same, or nearly so.) |
|
11-04-2014, 04:40 AM | #8 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yup, I patched htop to set the TERMINFO env var to the directory shipped with USBNet (which happens to only contains the xterm file from a recent ncurses distrib, because that's what TERM defaults to over SSH).
|
11-04-2014, 05:07 AM | #9 |
Evangelist
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
I thought from reading stuff on the net that I could maybe set HOME and use ~/.terminfo as the directory? I'm really just playing/learning about this - it's not really worth it exect as an exercise. I'm not even sure how to tell whats wrong.
This is what happens: I'm using the boggle binary from debian. I made a script to start it with some variables and use kterm. When I call the program from ssh, it starts the kterm window fine then just hangs - no errors or anything, just waits for something? Maybe I have to bind mount the wordlist file to the right place (I'm still struggling with that part also). Maybe it's the ncurses part. Not really worth struggling with, I guess. Thanks anyway! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Your Inner Fish | kennyc | Reading Recommendations | 7 | 10-30-2010 10:34 AM |
iPad Tap Fish | The Old Man | Apple Devices | 0 | 06-21-2010 09:30 AM |
Unutterably Silly Is the blue one next to the fish getting old? | AprilHare | Lounge | 60 | 12-04-2009 01:54 AM |
the blue one next to the fish | Dylrob | Lounge | 58 | 06-05-2009 02:11 PM |