[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[task #15924] Auto-completion: Output Formatting
From: |
Pedram Ashofteh Ardakani |
Subject: |
[task #15924] Auto-completion: Output Formatting |
Date: |
Sat, 27 Mar 2021 13:03:46 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0 |
URL:
<https://savannah.gnu.org/task/?15924>
Summary: Auto-completion: Output Formatting
Project: GNU Astronomy Utilities
Submitted by: pedram
Submitted on: Sat 27 Mar 2021 05:03:44 PM UTC
Should Start On: Sat 27 Mar 2021 12:00:00 AM UTC
Should be Finished on: Sat 27 Mar 2021 12:00:00 AM UTC
Category: None
Priority: 5 - Normal
Item Group: New feature
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Effort: 0.00
_______________________________________________________
Details:
The output formatting can change and vary. But it has nothing to do with the
back-end core of the smart suggestion procedure. So, we can track and discuss
more about the output formatting here, and leave the other parts to task
#15799.
I have started this thread on stackoverflow: Is it possible to categorize the
bash autocomplete output? <https://stackoverflow.com/q/66483519/6474744>
However, we might be able to colorize the output as Mohammad suggested
<https://savannah.gnu.org/task/?15799#comment22> as well. These links can help
for a start:
* Using colors with printf <https://stackoverflow.com/a/5412776/6474744>
* Bash tips: Colors and formatting (ANSI/VT100 Control sequences)
<https://misc.flogisoft.com/bash/tip_colors_and_formatting>
* How to Customize Bash Colors and Content in Linux Terminal Prompt
<https://www.tecmint.com/customize-bash-colors-terminal-prompt-linux/>
I tried using them. But there is a problem. It looks like the 'COMPREPLY'
values are treated as literal strings. That is why the ANSI color coding does
not work as expected. There might be a workaround.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/task/?15924>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [task #15924] Auto-completion: Output Formatting,
Pedram Ashofteh Ardakani <=