-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add FKEY-HEADER #232
add FKEY-HEADER #232
Conversation
sprintf(fkey_header, "%s%s%s", | ||
spaces(left_padding), tmp, spaces(right_padding)); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had done it in show_header_line
, but that is another way. Fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way it's done once at start. All else stays as-is.
When we'll have variable width, then we can re-think this and probably other stuff as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Imho, centering would possibly be better off in parse_logcfg, needed only once per config-file re-read
- just because the next idea is almost completely implemented by now, needing only to conditionally zero out left- or right padding, would it be too much Left|Centered|Right aligning instead of centering, FKEY_HEADER=[L:|C:|R:]text, defaulting to "C:" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Centering will be just a nice to have once we implement leading/trailing whitespace for config values. This is on my list. With whitespace the user will have better control on the appearance of the text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much, fully agree on whitespaces with you.
good hit again, it is a leftover by mistake when I split my two new keywords into two branches... |
On 29/01/2021 07.10, Thomas Beierlein wrote:
***@***.**** commented on this pull request.
------------------------------------------------------------------------
In test/data.c
<#232 (comment)>:
> @@ -196,6 +196,9 @@ char message[25][80] = /**< Array of CW/DigiMode messages
"", "", "", "", "", "", "", "", "", "", ""
};
+char fkey_header[60] =
+ " 1=CQ 2=DE 3=RST 4=73 5=HIS 6=MY 7=B4 8=AGN 9=? ";
+
Sorry, I do not agree here. Even if its broken does not mean we should
make the situation worse.
We should either make it right here or if :CFG is sooo bad - than we
should just drop or block it completely.
Well, I second to Thomas, I wish we could at least keep existing
functionality. My limited experience is rather positive with :CFG. I
think simple definitions are working OK, I repeatedly adjusted
F-key-definitions without restarting. I assume even contest definitions
could be somewhat adjusted on the fly. On the other hand, I can hardly
imagine if I ever wanted to replace the rig during a contest. (would be
hard for me anyway, possessing only a single tcvr ;-) ). It would be
time-consuming anyway -- would need replacing cables, so not much
additional time-penalty from re-starting the logger...
|
Added code to center after :CFG. For the :XXX related issues incl. config reloading see #233. Personally, I would not apply my last commit. |
I see no need to rush to a quick solution. I can understand your motivation to just keep the hands off the :CFG problem for now.
So not introducing 'weird behavior' means less work for us fixing problems/explaning why it is how made it and more time for going forward. Thus said I see some solutions for the problem:
What do you think? |
I don't quite get what is still outstanding as the last commit fixes centering after :CFG. At least for me it works. |
There was nothing wrong with your commit. I just wanted to say, that there are other ways to avoid the reformating after :CFG as you are not happy with it. |
Sequel to #229 by @ha5se
k_tune
from main and the externs from clear_display.