Skip to content

Flush Issues #20

@LambdaExpression

Description

@LambdaExpression
File : terminal.go

// Flush buffer and ensure that it will not overflow screen
func Flush() {
	for idx, str := range strings.Split(Screen.String(), "\n") {
		if idx > Height() {
			return
		}

		Output.WriteString(str + "\n")
	}

	Output.Flush()
	Screen.Reset()
}

This use "return" ,don't use "break"
What is the reason for that?
Don't has error message ,user don't kown

(English is relatively poor, hope forgive me)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions