unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* display-line-number in term
@ 2019-02-15 10:09 Ergus
  0 siblings, 0 replies; 3+ messages in thread
From: Ergus @ 2019-02-15 10:09 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Guys, I have a general question and maybe someone faced it already.

When I use global-display-line-numbers I have some issues when I open a
terminal because of the number of colors. 

The lines are broken because "tput cols" reports the total with of the
window, but does not take into account the 3/4 chars taken by the line
number. A possible solution could be to disable the numbers in
term-mode, but maybe there is a better/more elegant solution.

Any idea?

Thanks in advance



^ permalink raw reply	[flat|nested] 3+ messages in thread

* display-line-number in term
@ 2019-02-15 11:26 Ergus
  2019-02-15 14:12 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Ergus @ 2019-02-15 11:26 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Guys, I have a general question and maybe someone faced it already.

When I use global-display-line-numbers I have some issues when I open a
terminal because of the line numbers.

The lines are broken because "tput cols" reports the total with of the
window, but does not take into account the 3/4 (or more) chars taken by
the line number. 

The problem is worst when trying to use for example moc.

A possible solution could be to disable the numbers in
term-mode, but maybe there is a better/more elegant solution.

Any idea?

Thanks in advance





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: display-line-number in term
  2019-02-15 11:26 Ergus
@ 2019-02-15 14:12 ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2019-02-15 14:12 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 15 Feb 2019 12:26:10 +0100
> From: Ergus <spacibba@aol.com>
> 
> When I use global-display-line-numbers I have some issues when I open a
> terminal because of the line numbers.
> 
> The lines are broken because "tput cols" reports the total with of the
> window, but does not take into account the 3/4 (or more) chars taken by
> the line number. 
> 
> The problem is worst when trying to use for example moc.
> 
> A possible solution could be to disable the numbers in
> term-mode, but maybe there is a better/more elegant solution.
> 
> Any idea?

Please report this as a bug, preferably with a complete reproducing
recipe.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-15 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-15 10:09 display-line-number in term Ergus
  -- strict thread matches above, loose matches on Subject: below --
2019-02-15 11:26 Ergus
2019-02-15 14:12 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).