mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-01 04:40:06 +08:00
31 lines
670 B
Markdown
31 lines
670 B
Markdown
---
|
|
title: "unicode#box API"
|
|
description: "unicode#box API provides some basic functions for drawing box."
|
|
---
|
|
|
|
# [Available APIs](../../) >> unicode#box
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
- [Intro](#intro)
|
|
- [Functions](#functions)
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
## Intro
|
|
|
|
`unicode#box` API provides some basic functions for drawing box and table.
|
|
|
|
```vim
|
|
let s:SPI = SpaceVim#api#import('unicode#box')
|
|
call s:SPI.apply('dot1', 'g:dotstr')
|
|
set statusline+=%{g:dotstr}
|
|
```
|
|
|
|
## Functions
|
|
|
|
| function name | description |
|
|
| ------------------------ | ------------------------------ |
|
|
| `apply(name, time, var)` | start a job, return the job id |
|
|
|