repo: uritools
action: commit
revision: 
path_from: 
revision_from: e50dd187814cfa974844d3c55142ef71a3aa5bc6:
path_to: 
revision_to: 
git.thebackupbox.net
uritools
git clone git://git.thebackupbox.net/uritools
commit e50dd187814cfa974844d3c55142ef71a3aa5bc6
Author: epoch 
Date:   Tue Dec 22 07:03:45 2020 +0000

    choose now uses ledit if $DISPLAY isn't set

diff --git a/choose b/choose
index 73c74aa10aaab91d0e65b514e31f2670fa1cf39f..
index ..be4602a16d5578ed6a863d29d4c0aab62baf263e 100755
--- a/choose
+++ b/choose
@@ -6,4 +6,8 @@
 #message=$1
 #shift
 #sed 's|,|\\,|g;s|:|\\:|g' | tr '\n' ',' | rev | cut -b2- | rev | tr '\n' '\0' | xargs -0 xmessage -nearmouse "$@" "$message" -print -buttons
-dmenu -l 10 -p "$1"
+if [ $DISPLAY ];then
+  dmenu -l 10 -p "$1"
+else
+  printf "%s" "$1" ; ledit head -n1
+fi

-----END OF PAGE-----