Skip to content
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

Multiple lines inside a list? #59

Open
lolcatw opened this issue Jun 15, 2023 · 0 comments
Open

Multiple lines inside a list? #59

lolcatw opened this issue Jun 15, 2023 · 0 comments

Comments

@lolcatw
Copy link

lolcatw commented Jun 15, 2023

Hello. I can use the following code to create a list

messagelist =
	blessed.list({
		
		parent:screen,
		label:'{bold}{cyan-fg}#' + channel.name + '{/cyan-fg}{/bold}',
		tags:true,
		border:'line',
		width:"100%",
		top:0,
		left:0,
		bottom:1,
		mouse:true,
		scrollbar:{
			ch:'',
			track:{
				bg:'cyan'
			},
			style:{
				inverse:true
			}
		},
		style:{
			item:{
				hover:{
					bg:'blue'
				}
			},
			selected:{
				bg:'blue',
				bold:true
			}
		},
		items:[
			"Connected to channel " + channel.name + " (id:" + channel.id + ")"
		]
	});

And it works well. Now, if I append messages/items to this thing, if it has many newlines, it just gets truncated. Furthermore, if the text is simply too long, it just gets truncated there as well..

Is there something I'm missing, or an option I haven't heard about? Right now the only option I have is to split up the list elements if they go above the threshold...

Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant