forked from phoenix-oss/llama-stack-mirror
No automatic pager
This commit is contained in:
parent
204eb6d810
commit
546f05bd3f
1 changed files with 1 additions and 5 deletions
|
@ -5,7 +5,6 @@
|
|||
# the root directory of this source tree.
|
||||
|
||||
import argparse
|
||||
import subprocess
|
||||
import textwrap
|
||||
from io import StringIO
|
||||
|
||||
|
@ -110,7 +109,4 @@ def render_markdown_to_pager(markdown_content: str):
|
|||
console = Console(file=output, force_terminal=True, width=100) # Set a fixed width
|
||||
console.print(md)
|
||||
rendered_content = output.getvalue()
|
||||
|
||||
# Pipe to pager
|
||||
pager = subprocess.Popen(["less", "-R"], stdin=subprocess.PIPE)
|
||||
pager.communicate(input=rendered_content.encode())
|
||||
print(rendered_content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue