RE: IRIX-like desktop for Linux/BSD -
shrek - 01-20-2022
(01-20-2022, 12:47 PM)MrWeedster Wrote: I didn't customize my bash profile so much that it should break something, in fact i just enable one alias.
I also have another strange behaviour with bash/cmdshell:
If i type a longer command it gets cut off at 2/3 of the line and continues at the left of the screen without line feed. In mksh it's different and behaves normal like you'd expect.
Strange thing is that the adminshell works as expected, it's just the user shell behaving like this.
Can you reproduce this?
Another little thing, which i think was no design goal, is that i can't alt-tab properly out and in of games. It works out and i get the desktop back, but i can't alt-tab back in. It's missing the window somehow.
Normally it's no big issue because you can click on the taskbar to maximize the game if needed, but yeah no taskbar no luck.
Is there some way to hotkey that missing window back somehow?
Double check your adminshell script real quick. Make sure the /bin/bash in adminshell is after the -e on line 2 and not after the #! or it will still run mksh as the interactive shell. The preemptive word wrap thing is the default in mksh and doesn't happen in bash for me. Here are the exact cmdshell file contents I just tested
#!/bin/mksh
urxvt -name cmdshell -e /bin/bash
Alt+Tab only cycles the overlapping windows but doesn't change focus. Try doing Alt+Left Arrow or Alt+Right Arrow to cycle focus. Video game developers like to abuse APIs and do other funky things with their code so the solution will probably be playing in windowed mode. I get normal WM behavior with YouTube fullscreen and whole browser fullscreen (F11).
RE: IRIX-like desktop for Linux/BSD -
MrWeedster - 01-22-2022
Ah damn, i forgot i didn't change the adminshell, it still runs on mksh ^^
I always get confused because "echo $SHELL" in mksh gives /bin/bash in my adminshell.
But my commandshell is exactly like you mentioned.
RE: IRIX-like desktop for Linux/BSD -
shrek - 01-22-2022
(01-22-2022, 05:23 PM)MrWeedster Wrote: Ah damn, i forgot i didn't change the adminshell, it still runs on mksh ^^
I always get confused because "echo $SHELL" in mksh gives /bin/bash in my adminshell.
But my commandshell is exactly like you mentioned.
SHELL is the environment variable for your login shell. Command Shell manually specifies a different shell binary for URxvt to run and ignores the env vars.
I try to avoid changing working defaults on the base system.
RE: IRIX-like desktop for Linux/BSD -
MrWeedster - 01-23-2022
Ok. But can we figure out why bash is broken in my case in the normal commandshell?
RE: IRIX-like desktop for Linux/BSD -
shrek - 01-23-2022
(01-23-2022, 04:23 PM)MrWeedster Wrote: Ok. But can we figure out why bash is broken in my case in the normal commandshell?
Open a new window and enter "bash" without quotes at the prompt then open the cmdshell script in a text editor. Please post a screenshot of both. I'm having some difficulty understanding what you're seeing on your screen.
RE: IRIX-like desktop for Linux/BSD -
MrWeedster - 01-24-2022
Ok found it, it is my prompt definition.
I'm too stupid to find the error, do you know what's wrong?
"PS1="[\e[1;35m\u[m@\e[1;31m\h \e[36m\w\e[m $] "
RE: IRIX-like desktop for Linux/BSD -
robespierre - 01-24-2022
(01-24-2022, 07:11 AM)MrWeedster Wrote: "PS1="[\e[1;35m\u[m@\e[1;31m\h \e[36m\w\e[m $] "
It looks like some chars got dropped from that string.
Should it be PS1="[\e[1;35m\u\e[0m@\e[1;31m\h \e[36m\w\e[0m $] "
Anyway, this depends on the terminal program handling ANSI X3.64 codes; some do not.
RE: IRIX-like desktop for Linux/BSD -
MrWeedster - 01-24-2022
I don't know, it's the same as it's in my bashrc what i posted.
The syntax confuses me big time.
But even after adding the things you mentioned i still have the same behaviour with broken input
RE: IRIX-like desktop for Linux/BSD -
shrek - 01-24-2022
(01-24-2022, 11:37 AM)MrWeedster Wrote: I don't know, it's the same as it's in my bashrc what i posted.
The syntax confuses me big time.
But even after adding the things you mentioned i still have the same behaviour with broken input
It sounds like you may have non-standard configs that rely on specific terminal emulator features like robespierre said. You could try different terminal emulators like XTerm or Konsole. DeskView is modular so you can just plug in your favorite terminal emulator name in place of cmdshell in your ~/.toolboxrc. It won't match the Motif aesthetics, though.
If it's just the prompt customization you're struggling with there are online WYSIWYG editors. Search for "bash prompt generator"
RE: IRIX-like desktop for Linux/BSD -
MrWeedster - 02-11-2022
You did good work.
It also compiles and installs on a rapsberry pi.
I got "dietpi" underlying and installed it on top, works great, except xosview2, it doesn't compile.
Code:
g++-10 -Wall -Wextra -O2 -I/usr/include/freetype2 -I/home/dietpi/work/DVdist/DeskView/bin/Xosview/src/xosview2-2.3.1 -I/home/dietpi/work/DVdist/DeskView/bin/Xosview/src/xosview2-2.3.1/cmeter -I/home/dietpi/work/DVdist/DeskView/bin/Xosview/src/xosview2-2.3.1/linux -DHAVE_CONFIG_H -c serialmeter.cc -o serialmeter.o
serialmeter.cc: In member function ‘void SerialMeter::getserial()’:
serialmeter.cc:73:25: error: ‘inb’ was not declared in this scope; did you mean ‘int’?
73 | unsigned char lsr = inb(_port + UART_LSR);
| ^~~
| int
make[1]: *** [../Makefile.config:42: serialmeter.o] Fehler 1