[Gambas-bugtracker] Bug #2089: Increase capability of Input function
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Fri Feb 12 02:51:52 CET 2021
http://gambaswiki.org/bugtracker/edit?object=BUG.2089&from=L21haW4-
Rafael FRYER reported a new bug.
Summary
-------
Increase capability of Input function
Type : Request
Priority : Low
Gambas version : 3.15
Product : Language
Description
-----------
Gambas is great as a GUI app creator, and has many powerful features for dealing with user input and the like in a GUI way, however it feels a bit lacking in the CLI department. I feel that one way this could be helped is by increasing the capability of (or making another command with expanded capabilities) the Input command. Right now it's pretty bare bones and seems more suited to dealing with streams coming from file contents and not user based input through a command line interface. Something like the read command in bash has many functions that are provide much more flexibility, namely the ability to print a prompt with the -p flag, wait until a certain number of keys are pressed with the -n flag, and hide the input on screen with the -s flag. These would be super useful to have in Gambas as it would increase its flexibility in creating cli applications by letting us get input from the user to act on much easier.
System information
------------------
[System]
Gambas=3.15.2
OperatingSystem=Linux
Kernel=5.11.0-1-MANJARO
Architecture=x86_64
Distribution=arch Manjaro Linux
Desktop=KDE5
Theme=breeze
Language=en_AU.UTF-8
Memory=15437M
[Libraries]
Cairo=libcairo.so.2.11704.0
Curl=libcurl.so.4.7.0
DBus=libdbus-1.so.3.19.13
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2404.20
GStreamer=libgstreamer-1.0.so.0.1803.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2404.20
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.107.0.0
QT5=libQt5Core.so.5.15.2
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=/usr/share/xsessions/plasma
DISPLAY=:0
GB_GUI=gb.qt5
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-2.0:<home>/.config/gtkrc-2.0
GTK_MODULES=canberra-gtk-module:appmenu-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.config/gtkrc
HOME=<home>
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=en_AU.UTF-8
LANGUAGE=en_AU.UTF-8
LC_ADDRESS=en_AU.UTF-8
LC_ALL=en_AU.UTF-8
LC_IDENTIFICATION=en_AU.UTF-8
LC_MEASUREMENT=en_AU.UTF-8
LC_MONETARY=en_AU.UTF-8
LC_NAME=en_AU.UTF-8
LC_NUMERIC=en_AU.UTF-8
LC_PAPER=en_AU.UTF-8
LC_TELEPHONE=en_AU.UTF-8
LC_TIME=en_AU.UTF-8
LOGNAME=<user>
MAIL=/var/spool/mail/<user>
MOTD_SHOWN=pam
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=<home>
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_LOGGING_RULES=*.debug=false
QT_SCREEN_SCALE_FACTORS=eDP=1.25;HDMI-A-0=1.25;DisplayPort-0=1.25;
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1121,unix/<hostname>:/tmp/.ICE-unix/1121
SHELL=/bin/bash
SHLVL=0
TZ=:/etc/localtime
UBUNTU_MENUPROXY=1
USER=<user>
XAUTHORITY=<home>/.Xauthority
XCURSOR_SIZE=36
XCURSOR_THEME=Qogir-cursors
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=1
More information about the Bugtracker
mailing list