Comments (2)
As @Garrett96 mentioned, you can test for a terminal with test -t 0
. If true, then we're good. But otherwise, we have several rather ugly options.
Unfortunately, the name of the terminal app is not standardized, and there may be more than one.
Here's a list of common terminal applications compiled from this SO post.
For X11 -> xterm
For Kde -> konsole
For GNOME -> gnome-terminal
For xfce4 -> xfce4-terminal
For Cinnamon -> x-terminal-emulator
For MATE -> mate-terminal --window
For Unity -> gnome-terminal --profile=Default
For Pantheon -> pantheon-terminal -w ''
But we don't really know which one the user wants to open. It's possible to guess by using the most specific one, or the one they are running right now, or by trying to match $TERM
or something like that. All this feature sniffing would take time and complexity and add even more confusion when it doesn't work. It also reminds me of browser sniffing on the web, so I'll leave that for someone else.
Alternatively we can just pipe everything to screen
or a log file, and let the user know where to find the logs. But at that point we might as well ask that they open Cubyz in a terminal in the first place.
from cubyz.
Alright, since there seems to be no simple, short-term solution I'm closing this in favor of #227, which would be the go to solution for all people who don't want to use the terminal. With #227 the logs should be displayed in the launcher.
from cubyz.
Related Issues (20)
- Page sizes are different from 4096 and dynamic on ARM, causing errors when using the new VirtualList.
- Closing the name creating prompt that appears on first launch leads to an empty screen. HOT 1
- Allow pressing ESC once to exit chat fully
- Make settings windows close automatically when going back into gameplay HOT 1
- Add indicator to interactable blocks HOT 1
- Make default UI positions have less overlap HOT 1
- Make "/" keybind that opens chat and puts a "/" in the chat HOT 6
- Hotbar does not change slot until hotkey is pressed then lifted HOT 2
- Dynamic FOV
- Host zig compiler versions in a separate github project
- Biome stripes should be optimized.
- Can the GPU occlusion culling be improved by downscaling the depth texture first?
- Determining which meshes and LOD meshes are visible should be optimized
- Post-processing effects like tint, contrast, quantization, brightness, and etc.
- "Root World"
- Held Item Model
- Reacharound block placing HOT 1
- Make nearby stuff (within a few blocks) faintly visible HOT 1
- When a username has unmatched formatting qualifiers, the message is always underlined/bold by default.
- Remove all the unreachable stun servers from the list of stun servers.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cubyz.