'''Powerline terminal prompt example.
'''

import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))

from lib.core import Powerline, Segment
from lib.renderers import TerminalSegmentRenderer

powerline = Powerline([
	Segment('⭤ SSH', 220, 166, attr=Segment.ATTR_BOLD),
	Segment('username', 153, 31),
	Segment('~', 248, 239),
	Segment('projects', 248, 239),
	Segment('powerline', 231, 239, attr=Segment.ATTR_BOLD),
	Segment(filler=True),
])

print(powerline.render(TerminalSegmentRenderer()))

'''Powerline terminal prompt example.
'''

import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))

from lib.core import Powerline, Segment
from lib.renderers import TerminalSegmentRenderer

powerline = Powerline([
	Segment('⭤ SSH', 220, 166, attr=Segment.ATTR_BOLD),
	Segment('username', 153, 31),
	Segment('~', 248, 239),
	Segment('projects', 248, 239),
	Segment('powerline', 231, 239, attr=Segment.ATTR_BOLD),
	Segment(filler=True),
])

print(powerline.render(TerminalSegmentRenderer()))

Fix issues with the terminal prompt example
Fix issues with the terminal prompt example

  '''Powerline terminal prompt example.
  '''
  
  import os
  import sys
- sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
+ sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
  
  from lib.core import Powerline, Segment
  from lib.renderers import TerminalSegmentRenderer
  
  powerline = Powerline([
  	Segment('⭤ SSH', 220, 166, attr=Segment.ATTR_BOLD),
  	Segment('username', 153, 31),
  	Segment('~', 248, 239),
  	Segment('projects', 248, 239),
  	Segment('powerline', 231, 239, attr=Segment.ATTR_BOLD),
  	Segment(filler=True),
  ])
  
  print(powerline.render(TerminalSegmentRenderer()))
  
Fix issues with the terminal prompt example
## Code Before:
'''Powerline terminal prompt example.
'''

import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))

from lib.core import Powerline, Segment
from lib.renderers import TerminalSegmentRenderer

powerline = Powerline([
	Segment('⭤ SSH', 220, 166, attr=Segment.ATTR_BOLD),
	Segment('username', 153, 31),
	Segment('~', 248, 239),
	Segment('projects', 248, 239),
	Segment('powerline', 231, 239, attr=Segment.ATTR_BOLD),
	Segment(filler=True),
])

print(powerline.render(TerminalSegmentRenderer()))

## Instruction:
Fix issues with the terminal prompt example
## Code After:
'''Powerline terminal prompt example.
'''

import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))

from lib.core import Powerline, Segment
from lib.renderers import TerminalSegmentRenderer

powerline = Powerline([
	Segment('⭤ SSH', 220, 166, attr=Segment.ATTR_BOLD),
	Segment('username', 153, 31),
	Segment('~', 248, 239),
	Segment('projects', 248, 239),
	Segment('powerline', 231, 239, attr=Segment.ATTR_BOLD),
	Segment(filler=True),
])

print(powerline.render(TerminalSegmentRenderer()))
