IRIX-like desktop for Linux/BSD
RE: IRIX-like desktop for Linux/BSD
(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).

Octane2  R14k 600MHz, V10, 2GB RAM, 73GB disk, IRIX 6.5.22
shrek
It's not done until it's ogre.

Trade Count: (0)
Posts: 233
Threads: 19
Joined: Jan 2019
Location: United States
Find Reply
01-20-2022, 01:23 PM
RE: IRIX-like desktop for Linux/BSD
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.
MrWeedster
Octane

Trade Count: (0)
Posts: 86
Threads: 12
Joined: Jan 2019
Find Reply
01-22-2022, 05:23 PM
RE: IRIX-like desktop for Linux/BSD
(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.

Octane2  R14k 600MHz, V10, 2GB RAM, 73GB disk, IRIX 6.5.22
shrek
It's not done until it's ogre.

Trade Count: (0)
Posts: 233
Threads: 19
Joined: Jan 2019
Location: United States
Find Reply
01-22-2022, 06:30 PM
RE: IRIX-like desktop for Linux/BSD
Ok. But can we figure out why bash is broken in my case in the normal commandshell?
MrWeedster
Octane

Trade Count: (0)
Posts: 86
Threads: 12
Joined: Jan 2019
Find Reply
01-23-2022, 04:23 PM
RE: IRIX-like desktop for Linux/BSD
(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.

Octane2  R14k 600MHz, V10, 2GB RAM, 73GB disk, IRIX 6.5.22
shrek
It's not done until it's ogre.

Trade Count: (0)
Posts: 233
Threads: 19
Joined: Jan 2019
Location: United States
Find Reply
01-23-2022, 05:03 PM
RE: IRIX-like desktop for Linux/BSD
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 $] "
MrWeedster
Octane

Trade Count: (0)
Posts: 86
Threads: 12
Joined: Jan 2019
Find Reply
01-24-2022, 07:11 AM
RE: IRIX-like desktop for Linux/BSD
(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.

Personaliris O2 Indigo2 R10000/IMPACT Indigo2 R10000/IMPACT Indigo2 Indy   (past: 4D70GT)
(This post was last modified: 01-24-2022, 08:24 AM by robespierre.)
robespierre
refector peritus

Trade Count: (0)
Posts: 640
Threads: 3
Joined: Nov 2020
Location: Massholium
Find Reply
01-24-2022, 08:20 AM
RE: IRIX-like desktop for Linux/BSD
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
MrWeedster
Octane

Trade Count: (0)
Posts: 86
Threads: 12
Joined: Jan 2019
Find Reply
01-24-2022, 11:37 AM
RE: IRIX-like desktop for Linux/BSD
(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"

Octane2  R14k 600MHz, V10, 2GB RAM, 73GB disk, IRIX 6.5.22
shrek
It's not done until it's ogre.

Trade Count: (0)
Posts: 233
Threads: 19
Joined: Jan 2019
Location: United States
Find Reply
01-24-2022, 12:59 PM
RE: IRIX-like desktop for Linux/BSD
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

   
MrWeedster
Octane

Trade Count: (0)
Posts: 86
Threads: 12
Joined: Jan 2019
Find Reply
02-11-2022, 11:17 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)